mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Auto biometric prompt #2105
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
KeePassDX(4.1.4)
|
||||
* Fix UnlockManager #2098 #2101
|
||||
* Auto device unlock prompt #2105
|
||||
|
||||
KeePassDX(4.1.3)
|
||||
* Fix Autofill Registration #2089
|
||||
|
||||
@@ -288,7 +288,6 @@ class DeviceUnlockFragment: Fragment() {
|
||||
// Auto open the biometric prompt
|
||||
if (mDeviceUnlockViewModel.allowAutoOpenBiometricPrompt
|
||||
&& PreferencesUtil.isAdvancedUnlockPromptAutoOpenEnable(requireContext())) {
|
||||
mDeviceUnlockViewModel.allowAutoOpenBiometricPrompt = false
|
||||
openExtractPrompt(cryptoPrompt)
|
||||
}
|
||||
}
|
||||
@@ -418,10 +417,10 @@ class DeviceUnlockFragment: Fragment() {
|
||||
private fun setAuthenticationError(errorCode: Int, errString: CharSequence) {
|
||||
Log.e(TAG, "Biometric authentication error. Code : $errorCode Error : $errString")
|
||||
when (errorCode) {
|
||||
BiometricPrompt.ERROR_NEGATIVE_BUTTON ->
|
||||
mDeviceUnlockViewModel.setException(
|
||||
SecurityException(getString(R.string.error_cancel_by_user))
|
||||
)
|
||||
BiometricPrompt.ERROR_NEGATIVE_BUTTON,
|
||||
BiometricPrompt.ERROR_USER_CANCELED -> {
|
||||
// Ignore negative button
|
||||
}
|
||||
else ->
|
||||
mDeviceUnlockViewModel.setException(
|
||||
SecurityException(errString.toString())
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
* Fix UnlockManager #2098 #2101
|
||||
* Auto device unlock prompt #2105
|
||||
@@ -1 +1,2 @@
|
||||
* Correction UnlockManager #2098 #2101
|
||||
* Invite de déverrouillage automatique de l'appareil #2105
|
||||
Reference in New Issue
Block a user