Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9296cf0a authored by Chandru S's avatar Chandru S
Browse files

Do not run face auth if keyguard is already authenticated with face.

Fixes: 285518497
Test: atest DeviceEntryFaceAuthRepositoryTest
Change-Id: I2536ae302b6b7d240e931b51698ac125bd1668ea
parent 37b214b8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -365,6 +365,7 @@ constructor(
                    "nonStrongBiometricIsAllowed",
                    faceAuthLog
                ),
                logAndObserve(isAuthenticated.isFalse(), "faceNotAuthenticated", faceAuthLog),
            )
            .reduce(::and)
            .distinctUntilChanged()
+1 −0
Original line number Diff line number Diff line
@@ -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) {