commit | af8aaae1c23c052408b86f52782e7cf2b127e023 | [log] [tgz] |
---|---|---|
author | Winson Chung <winsonc@google.com> | Sun Jun 13 22:05:03 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sun Jun 13 22:05:03 2021 +0000 |
tree | 6e1376ff873c4326a0d6391a580fc529f0ab6619 | |
parent | 3dae545efd21424da8de2770e9cf1abe31125d4f [diff] | |
parent | 4af9bd7f05280a84c08030353668e94c16d261f0 [diff] |
Merge "Ensure we pass the pointer id to the velocity tracker and not the index" into sc-dev am: be2a0989ce am: 4af9bd7f05 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14940326 Change-Id: I8158d8a083c5b593e93b20c356e4a232cc3c17a3
diff --git a/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java b/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java index 8151d41..1ed2da3 100644 --- a/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java +++ b/quickstep/src/com/android/quickstep/util/MotionPauseDetector.java
@@ -121,7 +121,7 @@ mForcePauseTimeout.setAlarm(mMakePauseHarderToTrigger ? HARDER_TRIGGER_TIMEOUT : FORCE_PAUSE_TIMEOUT); - float newVelocity = mVelocityProvider.addMotionEvent(ev, pointerIndex); + float newVelocity = mVelocityProvider.addMotionEvent(ev, ev.getPointerId(pointerIndex)); if (mPreviousVelocity != null) { checkMotionPaused(newVelocity, mPreviousVelocity, ev.getEventTime()); }