mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
@@ -153,6 +153,10 @@ class DeviceUnlockViewModel(application: Application): AndroidViewModel(applicat
|
|||||||
cipherDatabaseListener?.let {
|
cipherDatabaseListener?.let {
|
||||||
cipherDatabaseAction.unregisterDatabaseListener(it)
|
cipherDatabaseAction.unregisterDatabaseListener(it)
|
||||||
}
|
}
|
||||||
|
// Reassign prompt state to open again if necessary
|
||||||
|
if (uiState.value.cryptoPromptState == DeviceUnlockPromptMode.IDLE_SHOW) {
|
||||||
|
cryptoPromptShowPending = true
|
||||||
|
}
|
||||||
clear()
|
clear()
|
||||||
changeMode(DeviceUnlockMode.BIOMETRIC_UNAVAILABLE)
|
changeMode(DeviceUnlockMode.BIOMETRIC_UNAVAILABLE)
|
||||||
}
|
}
|
||||||
@@ -402,10 +406,6 @@ class DeviceUnlockViewModel(application: Application): AndroidViewModel(applicat
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun clear(checkOperation: Boolean = false) {
|
fun clear(checkOperation: Boolean = false) {
|
||||||
// Reassign prompt state to open again if necessary
|
|
||||||
if (uiState.value.cryptoPromptState == DeviceUnlockPromptMode.IDLE_SHOW) {
|
|
||||||
cryptoPromptShowPending = true
|
|
||||||
}
|
|
||||||
if (!checkOperation || cryptoPrompt?.isDeviceCredentialOperation != true) {
|
if (!checkOperation || cryptoPrompt?.isDeviceCredentialOperation != true) {
|
||||||
cryptoPrompt = null
|
cryptoPrompt = null
|
||||||
deviceUnlockManager = null
|
deviceUnlockManager = null
|
||||||
|
|||||||
Reference in New Issue
Block a user