fix: PRF Authentication #2673

This commit is contained in:
J-Jamet committed 2026-08-31 12:51:14 +02:00
1 parent 1bbddb9f8e
commit a6bc8b288b
1 file changed
+4 -2
@@ -23,7 +23,7 @@ abstract class CredentialLauncherViewModel(application: Application): AndroidVie
protected var mDatabase: ContextualDatabase? = null
protected var isResultLauncherRegistered: Boolean = false
private var isResultLauncherRegistered: Boolean = false
private var mSelectionResult: ActivityResult? = null
protected val mCredentialUiState = MutableStateFlow<CredentialState>(CredentialState.Loading)
val credentialUiState: StateFlow<CredentialState> = mCredentialUiState.asStateFlow()
@@ -34,7 +34,9 @@ abstract class CredentialLauncherViewModel(application: Application): AndroidVie
}
open fun onResult() {
isResultLauncherRegistered = false
// No need to allow new Activity operation if finished
// and prevent workflow bug if activity is relaunched
// isResultLauncherRegistered = false
mSelectionResult = null
}