Rescan face when user preses empty space on LS

For both bypass + non-bypass face auth.

Test: manual
Fixes: 194866908
Change-Id: I22014fb5dc2913c70a405ea41850719e03353a80
This commit is contained in:
Beverly
2021-07-28 16:26:23 -04:00
parent 10bff88e83
commit 63bca4985b

View File

@@ -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,