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
This commit is contained in:
Kevin Chyn
2021-02-10 18:39:29 -08:00
parent cbd9d41826
commit a5ae7ebb95

View File

@@ -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;
}
}