Merge "Ignore motion event of invalid pointer" into qt-dev

This commit is contained in:
Lucas Dupin
2019-05-13 22:50:50 +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;