From 63bca4985b11d184c9e451a8f8f6dab89a34bc46 Mon Sep 17 00:00:00 2001 From: Beverly Date: Wed, 28 Jul 2021 16:26:23 -0400 Subject: [PATCH] Rescan face when user preses empty space on LS For both bypass + non-bypass face auth. Test: manual Fixes: 194866908 Change-Id: I22014fb5dc2913c70a405ea41850719e03353a80 --- .../statusbar/phone/NotificationPanelViewController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index ad4d450fd9474..893c4c6327c38 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -3242,7 +3242,10 @@ public class NotificationPanelViewController extends PanelViewController { switch (mBarState) { case KEYGUARD: if (!mDozingOnDown) { - if (mKeyguardBypassController.getBypassEnabled()) { + if (mUpdateMonitor.isFaceEnrolled() + && !mUpdateMonitor.isFaceDetectionRunning() + && !mUpdateMonitor.getUserCanSkipBouncer( + KeyguardUpdateMonitor.getCurrentUser())) { mUpdateMonitor.requestFaceAuth(true); } else { mLockscreenGestureLogger.write(MetricsEvent.ACTION_LS_HINT,