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

Commit 79ff586c authored by Tony Wickham's avatar Tony Wickham Committed by Automerger Merge Worker
Browse files

Call onUserUnlocked() before adding callbacks am: 5a36b919

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15756866

Change-Id: I03e5411032285015489f4b8bceb8b023e9c12909
parents 3118d244 5a36b919
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -358,12 +358,14 @@ public class TouchInteractionService extends Service implements PluginListener<O
        mDeviceState = new RecentsAnimationDeviceState(this, true);
        mDisplayManager = getSystemService(DisplayManager.class);
        mTaskbarManager = new TaskbarManager(this);

        mRotationTouchHelper = mDeviceState.getRotationTouchHelper();
        mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged);
        mDeviceState.addOneHandedModeChangedCallback(this::onOneHandedModeOverlayChanged);

        // Call runOnUserUnlocked() before any other callbacks to ensure everything is initialized.
        mDeviceState.runOnUserUnlocked(this::onUserUnlocked);
        mDeviceState.runOnUserUnlocked(mTaskbarManager::onUserUnlocked);
        mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged);
        mDeviceState.addOneHandedModeChangedCallback(this::onOneHandedModeOverlayChanged);

        ProtoTracer.INSTANCE.get(this).add(this);
        LauncherSplitScreenListener.INSTANCE.get(this).init();
        sConnected = true;