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

Commit a5ae7ebb authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Go to STATE_AUTH_STARTED_UI_SHOWING if UI was already showing

This can happen if the retry button was pressed

Bug: 179955752
Test: atest CtsBiometricsTestCases
Test: atest com.android.server.biometrics
Change-Id: Id632da3c13c81f8eee905cf0f00e7cb8cfaabaf3
parent cbd9d418
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -257,11 +257,15 @@ public final class AuthSession implements IBinder.DeathRecipient {
                            mUserId,
                            mOpPackageName,
                            mOperationId);
                    mState = STATE_AUTH_STARTED;
                } catch (RemoteException e) {
                    Slog.e(TAG, "Remote exception", e);
                }
            } else {
                // The UI was already showing :)
                mState = STATE_AUTH_STARTED_UI_SHOWING;
            }
            mState = STATE_AUTH_STARTED;

        }
    }