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

Commit 6151b118 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 94ac906b: Merge "Fix pointer index out of range exception"

* commit '94ac906b':
  Fix pointer index out of range exception
parents fac55682 94ac906b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ public class StackTapPointerEventListener implements PointerEventListener {
                if (mPointerId >= 0) {
                    int index = motionEvent.findPointerIndex(mPointerId);
                    if ((motionEvent.getEventTime() - motionEvent.getDownTime()) > TAP_TIMEOUT_MSEC
                            || index < 0
                            || Math.abs(motionEvent.getX(index) - mDownX) > mMotionSlop
                            || Math.abs(motionEvent.getY(index) - mDownY) > mMotionSlop) {
                        mPointerId = -1;