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

Commit 96640438 authored by Ale Nijamkin's avatar Ale Nijamkin Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Fixes pattern redraw bug." into main

parents 9f396da6 ed928340
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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
            }
+2 −1
Original line number Diff line number Diff line
@@ -166,7 +166,8 @@ class PatternBouncerViewModel(
            interactor.onFalseUserInput()
        }

        tryAuthenticate()
        clearInput()
        tryAuthenticate(input = pattern)
    }

    override fun clearInput() {