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

Commit cba7f509 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Validate pointer index in PagedView#onMotionEvent" into ub-launcher3-rvc-dev

parents b1eeeafa 93bf1fe1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1198,6 +1198,8 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
            if (mIsBeingDragged) {
                final int activePointerId = mActivePointerId;
                final int pointerIndex = ev.findPointerIndex(activePointerId);
                if (pointerIndex == -1) return true;

                final float primaryDirection = mOrientationHandler.getPrimaryDirection(ev,
                    pointerIndex);
                final VelocityTracker velocityTracker = mVelocityTracker;