Skip to content

Commit c104d16

Browse files
adampThe Android Automerger
authored andcommitted
DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP
Bug 7088494 Change-Id: I723e9b77f0d0473f9d769e53aaa568c4aaac90aa
1 parent 21ee2ca commit c104d16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/java/android/view/GestureDetector.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ public boolean onTouchEvent(MotionEvent ev) {
453453
}
454454
mVelocityTracker.addMovement(ev);
455455

456-
final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP;
456+
final boolean pointerUp =
457+
(action & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_POINTER_UP;
457458
final int skipIndex = pointerUp ? ev.getActionIndex() : -1;
458459

459460
// Determine focal point

0 commit comments

Comments
 (0)