Merge "Validate pointer index in PagedView#onMotionEvent" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cba7f50947
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user