Skip to content

Commit b944514

Browse files
adampAndroid Git Automerger
authored andcommitted
am f1faf77: Merge "DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP" into jb-dev
* commit 'f1faf7743f39f56cc57d6f2a520e5c8ecf4e58b5': DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP
2 parents 0e90f73 + f1faf77 commit b944514

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)