Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4247c25 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

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

parents 00453e7a f90165ae
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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