am f4247c25: Merge "GestureDetector - Mask action when checking POINTER_UP" into jb-mr1-dev

* commit 'f4247c250dd0ce50c8fa4e59bad33d0ba9b68692':
  GestureDetector - Mask action when checking POINTER_UP
This commit is contained in:
Adam Powell
2012-08-31 11:15:18 -07:00
committed by Android Git Automerger

View File

@@ -453,7 +453,8 @@ public class GestureDetector {
}
mVelocityTracker.addMovement(ev);
final boolean pointerUp = action == MotionEvent.ACTION_POINTER_UP;
final boolean pointerUp =
(action & MotionEvent.ACTION_MASK) == MotionEvent.ACTION_POINTER_UP;
final int skipIndex = pointerUp ? ev.getActionIndex() : -1;
// Determine focal point