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

Commit 4314d726 authored by Saumya Prakash's avatar Saumya Prakash Committed by Android (Google) Code Review
Browse files

Merge "Fix jump in app launch when quick switching from Home" into main

parents 0c2b98e8 5983ac77
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -324,12 +324,12 @@ public class NoButtonQuickSwitchTouchController implements TouchController,

    @Override
    public void onDragEnd(PointF velocity) {
        cancelAnimations();
        boolean horizontalFling = mSwipeDetector.isFling(velocity.x);
        boolean verticalFling = mSwipeDetector.isFling(velocity.y);
        boolean noFling = !horizontalFling && !verticalFling;
        if (mMotionPauseDetector.isPaused() && noFling) {
            // Going to Overview.
            cancelAnimations();
            InteractionJankMonitorWrapper.cancel(Cuj.CUJ_LAUNCHER_QUICK_SWITCH);

            StateAnimationConfig config = new StateAnimationConfig();
@@ -455,7 +455,6 @@ public class NoButtonQuickSwitchTouchController implements TouchController,
        nonOverviewAnim.setDuration(Math.max(xDuration, yDuration));
        mNonOverviewAnim.setEndAction(() -> onAnimationToStateCompleted(targetState));

        cancelAnimations();
        xOverviewAnim.start();
        yOverviewAnim.start();
        nonOverviewAnim.start();