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

Commit a247a40b 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

am: 17e73888

Change-Id: Id3b379eb59bd6517d551d3b59b8f3d6386079e38
parents c181afac 17e73888
Loading
Loading
Loading
Loading
+5 −1
Original line number 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 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);
    }