Cancel animations after reading MotionPauseDetector#isPaused()
Otherwise, it clears MotionPauseDetector so isPaused returns false. Fixes: 330186943 Flag: none Test: manual (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:77802d6da48320e5f5cf5c420fe31a1aa14e478e) Merged-In: I9e0982c18cc5264a1fab53077ac551d2880a6eae Change-Id: I9e0982c18cc5264a1fab53077ac551d2880a6eae
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
df4f4233b9
commit
f027b4eb36
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user