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

Commit 215ab0ca authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Fix flicker to OVERVIEW state during quick switch" into ub-launcher3-qt-dev

parents 63013c5e df4727e8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -267,6 +267,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>
    private MultiStateCallback mStateCallback;
    // Used to control launcher components throughout the swipe gesture.
    private AnimatorPlaybackController mLauncherTransitionController;
    private boolean mHasLauncherTransitionControllerStarted;

    private T mActivity;
    private RecentsView mRecentsView;
@@ -647,8 +648,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>
    }

    private void buildAnimationController() {
        if (mGestureEndTarget == HOME || (mLauncherTransitionController != null
                && mLauncherTransitionController.getAnimationPlayer().isStarted())) {
        if (mGestureEndTarget == HOME || mHasLauncherTransitionControllerStarted) {
            // We don't want a new mLauncherTransitionController if mGestureEndTarget == HOME (it
            // has its own animation) or if we're already animating the current controller.
            return;
@@ -1122,6 +1122,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>
            }
            mLauncherTransitionController.getAnimationPlayer().start();
        }
        mHasLauncherTransitionControllerStarted = true;
    }

    /**