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

Commit 4d22811f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cancel animations after reading MotionPauseDetector#isPaused()" into main

parents c2a60557 77802d6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -324,7 +324,6 @@ 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;
@@ -353,6 +352,7 @@ public class NoButtonQuickSwitchTouchController implements TouchController,
            return;
        }
        InteractionJankMonitorWrapper.cancel(Cuj.CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS);
        cancelAnimations();

        final LauncherState targetState;
        if (horizontalFling && verticalFling) {