Merge "Merge "Ignore motion event of invalid pointer" into qt-dev am: 9b887ef5e5 am: f1ff317c3a"

This commit is contained in:
Android Build Merger (Role)
2019-05-13 23:54:09 +00:00
committed by Android (Google) Code Review

View File

@@ -180,7 +180,7 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
}
int index = event.findPointerIndex(mActivePointerId);
int touchSlop = mViewConfiguration.getScaledTouchSlop();
if (mCurrentSecurityView != null
if (mCurrentSecurityView != null && index != -1
&& mStartTouchY - event.getY(index) > touchSlop) {
mIsDragging = true;
return true;