From 5e327e785b0c54952571217e53d9ea846b1c47fb Mon Sep 17 00:00:00 2001 From: Helen Qin Date: Mon, 8 May 2023 22:46:10 +0000 Subject: [PATCH] Bug fix for back arrow behavior. If the back arrow is triggered more than once, there's a bug in the animation property that will prevent the UI from resurfacing. This fix re-initialize the animation property so that the switches between the snackbar and bottom sheet back-arrow is in a consistent, refreshed state. Bug: 280517963 Test: manual Change-Id: I7c215b39a964360b2cca99bd8be98130128fa85f --- .../android/credentialmanager/CredentialSelectorViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/CredentialManager/src/com/android/credentialmanager/CredentialSelectorViewModel.kt b/packages/CredentialManager/src/com/android/credentialmanager/CredentialSelectorViewModel.kt index e96e536c00d54..3a7c51307c0ee 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/CredentialSelectorViewModel.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/CredentialSelectorViewModel.kt @@ -238,7 +238,8 @@ class CredentialSelectorViewModel( getCredentialUiState = uiState.getCredentialUiState?.copy( currentScreenState = GetScreenState.ALL_SIGN_IN_OPTIONS, isNoAccount = isNoAccount, - ) + ), + isInitialRender = true, ) }