diff options
2 files changed, 7 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/AuthMethodBouncerViewModel.kt b/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/AuthMethodBouncerViewModel.kt index 27184a0dfa12..55bc653fc737 100644 --- a/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/AuthMethodBouncerViewModel.kt +++ b/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/AuthMethodBouncerViewModel.kt @@ -102,9 +102,12 @@ sealed class AuthMethodBouncerViewModel( * * @see BouncerInteractor.authenticate */ - protected fun tryAuthenticate(useAutoConfirm: Boolean = false) { + protected fun tryAuthenticate( + input: List<Any> = getInput(), + useAutoConfirm: Boolean = false, + ) { viewModelScope.launch { - val authenticationResult = interactor.authenticate(getInput(), useAutoConfirm) + val authenticationResult = interactor.authenticate(input, useAutoConfirm) if (authenticationResult == AuthenticationResult.SKIPPED && useAutoConfirm) { return@launch } diff --git a/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/PatternBouncerViewModel.kt b/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/PatternBouncerViewModel.kt index 52adf54f8d24..d301085e823d 100644 --- a/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/PatternBouncerViewModel.kt +++ b/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/PatternBouncerViewModel.kt @@ -166,7 +166,8 @@ class PatternBouncerViewModel( interactor.onFalseUserInput() } - tryAuthenticate() + clearInput() + tryAuthenticate(input = pattern) } override fun clearInput() { |