From 1623c9dc2a4633ed505b7dd0b85d3973d8a3ebef Mon Sep 17 00:00:00 2001 From: Beverly Date: Fri, 2 Apr 2021 14:58:35 -0400 Subject: [PATCH] Let non-face biometric auth transition to home If face-auth + bypass is enabled, face-auth from the locked notification shade shouldn't immediately transition to home. (flow preserved) However, if face-auth + bypass is eabled and the user authenticates with another biometric authentication method that is explicit (ie: fingerprint), we should immediately transiton to home. (flow updated) Test: manual Fixes: 184366860 Change-Id: I04bfc9289982c7ffe3db89710923ca843551bb9b --- .../systemui/statusbar/phone/KeyguardBypassController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt index 242bd0a29d2fe..707135c3d95bd 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt @@ -124,7 +124,7 @@ open class KeyguardBypassController : Dumpable { biometricSourceType: BiometricSourceType, isStrongBiometric: Boolean ): Boolean { - if (bypassEnabled) { + if (biometricSourceType == BiometricSourceType.FACE && bypassEnabled) { val can = canBypass() if (!can && (isPulseExpanding || qSExpanded)) { pendingUnlock = PendingUnlock(biometricSourceType, isStrongBiometric)