mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-20 17:11:32 -08:00
fix: PRF Authentication #2673
This commit is contained in:
1 file changed
+4
-2
+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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user