fix: revert checkUnlock

This commit is contained in:
J-Jamet committed 2025-08-23 00:03:59 +02:00
1 parent e6e40f9bd4
commit 564b5f10ea
2 files changed
+5 -3

No files matched your search

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