mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 16:22:31 -08:00
fix: Authentication error
This commit is contained in:
1 file changed
+2
-1
@@ -341,11 +341,12 @@ class DeviceUnlockFragment: Fragment() {
|
||||
|
||||
private fun setAuthenticationError(errorCode: Int, errString: CharSequence) {
|
||||
Log.e(TAG, "Biometric authentication error. Code : $errorCode Error : $errString")
|
||||
mDeviceUnlockViewModel.biometricPromptClosed()
|
||||
when (errorCode) {
|
||||
BiometricPrompt.ERROR_CANCELED,
|
||||
BiometricPrompt.ERROR_NEGATIVE_BUTTON,
|
||||
BiometricPrompt.ERROR_USER_CANCELED -> {
|
||||
mDeviceUnlockViewModel.biometricPromptClosed()
|
||||
// No operation
|
||||
}
|
||||
else ->
|
||||
mDeviceUnlockViewModel.setException(SecurityException(errString.toString()))
|
||||
|
||||
Reference in new issue
Block a user