Merge "Revert "Clear out tuner prefs since it is disabled"" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d532ff3397
@@ -58,7 +58,7 @@ public class TunerServiceImpl extends TunerService {
|
|||||||
|
|
||||||
private static final String TUNER_VERSION = "sysui_tuner_version";
|
private static final String TUNER_VERSION = "sysui_tuner_version";
|
||||||
|
|
||||||
private static final int CURRENT_TUNER_VERSION = 3;
|
private static final int CURRENT_TUNER_VERSION = 2;
|
||||||
|
|
||||||
private final Observer mObserver = new Observer();
|
private final Observer mObserver = new Observer();
|
||||||
// Map of Uris we listen on to their settings keys.
|
// Map of Uris we listen on to their settings keys.
|
||||||
@@ -119,10 +119,6 @@ public class TunerServiceImpl extends TunerService {
|
|||||||
if (oldVersion < 2) {
|
if (oldVersion < 2) {
|
||||||
setTunerEnabled(mContext, false);
|
setTunerEnabled(mContext, false);
|
||||||
}
|
}
|
||||||
if (oldVersion < 3) {
|
|
||||||
// Delay this so that we can wait for everything to be registered first.
|
|
||||||
new Handler(Dependency.get(Dependency.BG_LOOPER)).postDelayed(() -> clearAll(), 5000);
|
|
||||||
}
|
|
||||||
setValue(TUNER_VERSION, newVersion);
|
setValue(TUNER_VERSION, newVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user