Merge "Add null check for input view." into udc-dev

This commit is contained in:
Aaron Liu
2023-06-16 18:41:26 +00:00
committed by Android (Google) Code Review

View File

@@ -474,7 +474,8 @@ public class KeyguardSecurityContainer extends ConstraintLayout {
return false;
}
// Avoid dragging the pattern view
if (mSecurityViewFlipper.getSecurityView().disallowInterceptTouch(event)) {
if (mSecurityViewFlipper.getSecurityView() != null
&& mSecurityViewFlipper.getSecurityView().disallowInterceptTouch(event)) {
return false;
}
int index = event.findPointerIndex(mActivePointerId);