Do not run face auth if keyguard is already authenticated with face.
Fixes: 285518497 Test: atest DeviceEntryFaceAuthRepositoryTest Change-Id: I2536ae302b6b7d240e931b51698ac125bd1668ea
This commit is contained in:
@@ -365,6 +365,7 @@ constructor(
|
||||
"nonStrongBiometricIsAllowed",
|
||||
faceAuthLog
|
||||
),
|
||||
logAndObserve(isAuthenticated.isFalse(), "faceNotAuthenticated", faceAuthLog),
|
||||
)
|
||||
.reduce(::and)
|
||||
.distinctUntilChanged()
|
||||
|
||||
@@ -260,6 +260,7 @@ class DeviceEntryFaceAuthRepositoryTest : SysuiTestCase() {
|
||||
assertThat(authStatus()).isEqualTo(SuccessAuthenticationStatus(successResult))
|
||||
assertThat(authenticated()).isTrue()
|
||||
assertThat(authRunning()).isFalse()
|
||||
assertThat(canFaceAuthRun()).isFalse()
|
||||
}
|
||||
|
||||
private fun uiEventIsLogged(faceAuthUiEvent: FaceAuthUiEvent) {
|
||||
|
||||
Reference in New Issue
Block a user