Revert "fix: revert checkUnlock"

This reverts commit 564b5f10ea.
This commit is contained in:
J-Jamet
2025-08-23 00:20:48 +02:00
parent 564b5f10ea
commit 5a263fcd7c
2 changed files with 3 additions and 5 deletions

View File

@@ -145,11 +145,6 @@ class DeviceUnlockFragment: Fragment() {
}
}
override fun onResume() {
super.onResume()
mDeviceUnlockViewModel.checkUnlockAvailability()
}
fun cancelBiometricPrompt() {
lifecycleScope.launch(Dispatchers.Main) {
mBiometricPrompt?.cancelAuthentication()

View File

@@ -350,6 +350,9 @@ class DeviceUnlockViewModel(application: Application): AndroidViewModel(applicat
AppLifecycleObserver.lockBackgroundEvent = true
isAutoOpenBiometricPromptAllowed = false
cryptoPromptShowPending = false
if (cryptoPrompt == null) {
checkUnlockAvailability()
}
_uiState.update { currentState ->
currentState.copy(
cryptoPromptState = DeviceUnlockPromptMode.SHOW