Clear out tuner prefs since it is disabled

Test: manual
Change-Id: Iff383557761fee92e37de4c4f3fcc10cff333299
Fixes: 74851117
This commit is contained in:
Jason Monk
2018-04-10 14:39:47 -04:00
parent 2bb1d26442
commit 8bb9bbf152

View File

@@ -58,7 +58,7 @@ public class TunerServiceImpl extends TunerService {
private static final String TUNER_VERSION = "sysui_tuner_version";
private static final int CURRENT_TUNER_VERSION = 2;
private static final int CURRENT_TUNER_VERSION = 3;
private final Observer mObserver = new Observer();
// Map of Uris we listen on to their settings keys.
@@ -119,6 +119,10 @@ public class TunerServiceImpl extends TunerService {
if (oldVersion < 2) {
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);
}