Skip to content

Commit f1faf77

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP" into jb-dev
2 parents 6fdd496 + 3926360 commit f1faf77

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)