Deprecate TunerService

This class's implementation uses the main looper for communicating with
Settings. As other classes may make use of this behavior, we don't
remove it yet but deprecate it.

Test: no test
Bug: 290434369
Change-Id: I767b0369e6d8235423f116566b88abf58103a53c
This commit is contained in:
Fabián Kozynski
2023-07-14 14:30:04 -04:00
parent 1ad38e26cc
commit 0aeb370036
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ import android.content.Intent;
import com.android.systemui.Dependency;
/**
* @deprecated Don't use this class to listen to Secure Settings. Use {@code SecureSettings} instead
* or {@code SettingsObserver} to be able to specify the handler.
*/
@Deprecated
public abstract class TunerService {
public static final String ACTION_CLEAR = "com.android.systemui.action.CLEAR_TUNER";

View File

@@ -56,7 +56,11 @@ import javax.inject.Inject;
/**
* @deprecated Don't use this class to listen to Secure Settings. Use {@code SecureSettings} instead
* or {@code SettingsObserver} to be able to specify the handler.
* This class will interact with SecureSettings using the main looper.
*/
@Deprecated
@SysUISingleton
public class TunerServiceImpl extends TunerService {