mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 16:22:31 -08:00
Fix exception message
This commit is contained in:
1 parent
7dc93604ad
commit
bd0b5b0954
1 file changed
+3
-5
@@ -212,9 +212,8 @@ class AdvancedUnlockHelper(private val context: FragmentActivity) {
|
||||
advancedUnlockCallback?.handleEncryptedResult(encryptedBase64, ivSpecValue)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
val exception = Exception(context.getString(R.string.keystore_not_accessible), e)
|
||||
Log.e(TAG, "Unable to encrypt data", e)
|
||||
advancedUnlockCallback?.onGenericException(exception)
|
||||
advancedUnlockCallback?.onGenericException(e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,9 +267,8 @@ class AdvancedUnlockHelper(private val context: FragmentActivity) {
|
||||
Log.e(TAG, "Unable to decrypt data", badPaddingException)
|
||||
advancedUnlockCallback?.onInvalidKeyException(badPaddingException)
|
||||
} catch (e: Exception) {
|
||||
val exception = Exception(context.getString(R.string.keystore_not_accessible), e)
|
||||
Log.e(TAG, "Unable to decrypt data", exception)
|
||||
advancedUnlockCallback?.onGenericException(exception)
|
||||
Log.e(TAG, "Unable to decrypt data", e)
|
||||
advancedUnlockCallback?.onGenericException(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user