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

Commit f8fafa28 authored by Matthew Ng's avatar Matthew Ng
Browse files

Immediate 2nd quickscrub should not cancel if same state

Trigging quickscrub immediately after a previous quickscrub would cause
the controller to cancel even if the state change was from overview to
overview, then controller will not do auto-advancing because it thinks
quickscrub has been cancelled. If the state changes but both are
overview then do not cancel and quickscrub can do auto-advancing.

Change-Id: I309937572ad23eea14662501f41c13cd79dd10ab
Fixes: 110006796
Test: quickscrub, then let go and soon after quickscrub again
parent 4f8e417b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -382,7 +382,9 @@ public class LauncherStateManager {
    }

    private void onStateTransitionStart(LauncherState state) {
        if (mState != state) {
            mState.onStateDisabled(mLauncher);
        }
        mState = state;
        mState.onStateEnabled(mLauncher);
        mLauncher.getAppWidgetHost().setResumed(state == LauncherState.NORMAL);