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

am: 9b887ef5e5

Change-Id: Ia07423b96ef55febb894d56b07336ede92914c10
This commit is contained in:
Lucas Dupin
2019-05-13 16:20:34 -07:00
committed by android-build-merger

View File

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