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

Commit 8e984c9e authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Fix handler in ColorInversionTile SecureSetting

In order to use handleRefreshState, the observer should use mHandler
(background thread).

Test: manual
Change-Id: I3d27b4e0036af1b6ca621d9b6eeb5174a911ed1c
parent 971b0022
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public class ColorInversionTile extends QSTileImpl<BooleanState> {
        super(host, backgroundLooper, mainHandler, metricsLogger, statusBarStateController,
                activityStarter, qsLogger);

        mSetting = new SecureSetting(secureSettings, mainHandler,
        mSetting = new SecureSetting(secureSettings, mHandler,
                Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, userTracker.getUserId()) {
            @Override
            protected void handleValueChanged(int value, boolean observedChange) {