Loading packages/CredentialManager/src/com/android/credentialmanager/CredentialSelectorViewModel.kt +12 −6 Original line number Diff line number Diff line Loading @@ -175,10 +175,7 @@ class CredentialSelectorViewModel( } else { Log.d(Constants.LOG_TAG, "The provider activity was cancelled," + " re-displaying our UI.") uiState = uiState.copy( selectedEntry = null, providerActivityState = ProviderActivityState.NOT_APPLICABLE, ) resetUiStateForReLaunch() } } else { if (entry != null) { Loading @@ -202,6 +199,15 @@ class CredentialSelectorViewModel( } } // Resets UI states for any situation that re-launches the UI private fun resetUiStateForReLaunch() { onBiometricPromptStateChange(BiometricPromptState.INACTIVE) uiState = uiState.copy( selectedEntry = null, providerActivityState = ProviderActivityState.NOT_APPLICABLE, ) } fun onLastLockedAuthEntryNotFoundError() { Log.d(Constants.LOG_TAG, "Unable to find the last unlocked entry") onInternalError() Loading Loading
packages/CredentialManager/src/com/android/credentialmanager/CredentialSelectorViewModel.kt +12 −6 Original line number Diff line number Diff line Loading @@ -175,10 +175,7 @@ class CredentialSelectorViewModel( } else { Log.d(Constants.LOG_TAG, "The provider activity was cancelled," + " re-displaying our UI.") uiState = uiState.copy( selectedEntry = null, providerActivityState = ProviderActivityState.NOT_APPLICABLE, ) resetUiStateForReLaunch() } } else { if (entry != null) { Loading @@ -202,6 +199,15 @@ class CredentialSelectorViewModel( } } // Resets UI states for any situation that re-launches the UI private fun resetUiStateForReLaunch() { onBiometricPromptStateChange(BiometricPromptState.INACTIVE) uiState = uiState.copy( selectedEntry = null, providerActivityState = ProviderActivityState.NOT_APPLICABLE, ) } fun onLastLockedAuthEntryNotFoundError() { Log.d(Constants.LOG_TAG, "Unable to find the last unlocked entry") onInternalError() Loading