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
This commit is contained in:
Beverly
2021-04-02 14:58:35 -04:00
parent c66d82c774
commit 1623c9dc2a

View File

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