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

Commit 9a777c84 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Never show the alternate bouncer if the primary bouncer is showing" into main

parents 1f960d29 f24eae4e
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -139,6 +139,14 @@ class AlternateBouncerInteractorTest : SysuiTestCase() {
        assertFalse(underTest.canShowAlternateBouncerForFingerprint())
    }

    @Test
    fun canShowAlternateBouncerForFingerprint_primaryBouncerShowing() {
        givenCanShowAlternateBouncer()
        bouncerRepository.setPrimaryShow(true)

        assertFalse(underTest.canShowAlternateBouncerForFingerprint())
    }

    @Test
    fun show_whenCannotShow() {
        givenCannotShowAlternateBouncer()
@@ -202,7 +210,7 @@ class AlternateBouncerInteractorTest : SysuiTestCase() {
        } else {
            bouncerRepository.setAlternateBouncerUIAvailable(true)
        }

        bouncerRepository.setPrimaryShow(false)
        biometricSettingsRepository.setIsFingerprintAuthEnrolledAndEnabled(true)
        biometricSettingsRepository.setIsFingerprintAuthCurrentlyAllowed(true)
        whenever(keyguardUpdateMonitor.isFingerprintLockedOut).thenReturn(false)
+2 −1
Original line number Diff line number Diff line
@@ -109,7 +109,8 @@ constructor(
            biometricSettingsRepository.isFingerprintAuthCurrentlyAllowed.value &&
            !keyguardUpdateMonitor.isFingerprintLockedOut &&
            !keyguardStateController.isUnlocked &&
            !statusBarStateController.isDozing
            !statusBarStateController.isDozing &&
            !bouncerRepository.primaryBouncerShow.value
    }

    /**