From 97b632d46651f11ad0da7ef005597cd7e1aff5d8 Mon Sep 17 00:00:00 2001 From: Beverly Date: Thu, 11 Nov 2021 16:21:51 -0500 Subject: [PATCH] Add SPLIT_TOUCH to UdfpsView So non-first touches go to the UdfpsView. This makes it easier to authenticate. Test: manually try multi-touch UDFPS Fixes: 203086896 Change-Id: I9ff954d21bc027d18c530a8b7799fef0e902c4c9 --- .../src/com/android/systemui/biometrics/UdfpsController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java index eb36915f97530..de45766af47d4 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/UdfpsController.java @@ -583,7 +583,7 @@ public class UdfpsController implements DozeReceiver { mCoreLayoutParams = new WindowManager.LayoutParams( WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG, - Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS, + 0 /* flags set in computeLayoutParams() */, PixelFormat.TRANSLUCENT); mCoreLayoutParams.setTitle(TAG); mCoreLayoutParams.setFitInsetsTypes(0); @@ -678,7 +678,8 @@ public class UdfpsController implements DozeReceiver { final int paddingX = animation != null ? animation.getPaddingX() : 0; final int paddingY = animation != null ? animation.getPaddingY() : 0; - mCoreLayoutParams.flags = Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS; + mCoreLayoutParams.flags = Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS + | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH; if (animation != null && animation.listenForTouchesOutsideView()) { mCoreLayoutParams.flags |= WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH; }