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

Commit eed626a6 authored by Winson Chung's avatar Winson Chung Committed by Peter Kalauskas
Browse files

Move addPluginListener to onUserUnlocked

addPluginListener() needs to be moved into onUserUnlocked() since it
reads from the shared preferences. This fixes a crash in
Launcher3QuickStepGo on wembley.

Bug: 143249037
Change-Id: Ib60f688cb3f91e377141fab1ad9f2a0071c96694
parent 85561d1e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -279,9 +279,6 @@ public class TouchInteractionService extends Service implements PluginListener<O
        mDeviceState.runOnUserUnlocked(this::onUserUnlocked);

        sConnected = true;

        PluginManagerWrapper.INSTANCE.get(getBaseContext()).addPluginListener(this,
                OverscrollPlugin.class, false /* allowMultiple */);
    }

    private void disposeEventHandlers() {
@@ -348,6 +345,9 @@ public class TouchInteractionService extends Service implements PluginListener<O
        mBackGestureNotificationCounter = Math.max(0, Utilities.getDevicePrefs(this)
                .getInt(KEY_BACK_NOTIFICATION_COUNT, MAX_BACK_NOTIFICATION_COUNT));
        resetHomeBounceSeenOnQuickstepEnabledFirstTime();

        PluginManagerWrapper.INSTANCE.get(getBaseContext()).addPluginListener(this,
                OverscrollPlugin.class, false /* allowMultiple */);
    }

    private void onDeferredActivityLaunch() {