Ignore motion event of invalid pointer

Test: swipe up with multiple fingers
Fixes: 132635371
Change-Id: I27fbb193affb1f073c3feb294ba51ad6e74ac4f1
This commit is contained in:
Lucas Dupin
2019-05-13 13:49:17 -07:00
parent 99a61d3b58
commit c26ab75148

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;