Revert "fix: revert checkUnlock"

This reverts commit 564b5f10ea.
This commit is contained in:
J-Jamet committed 2025-08-23 00:20:48 +02:00
1 parent 564b5f10ea
commit dae5f65c0d
2 files changed
+3 -5

No files matched your search

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