Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17e73888 authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Clear out tuner prefs since it is disabled" into pi-dev

am: 5f205b17

Change-Id: Ide1d32462c549386f9867f7992bd3f1e81961e4b
parents a68c3352 5f205b17
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -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 = 2;
    private static final int CURRENT_TUNER_VERSION = 3;


    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,6 +119,10 @@ 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);
    }
    }