Avoid crash in SettingsFragment
- Avoided crash in SettingsFragment when trying to decrypt the WIF, but logged the exception to Crashlytics in case we find out this problem persists.
This commit is contained in:
parent
ae3498e103
commit
39a3e6b7d4
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ class SettingsFragment : ConnectedFragment(), BaseSecurityLockDialog.OnPINPatter
|
|||
privateKey = CryptoUtils.decrypt(it, encryptedWIF)
|
||||
} catch (e: AEADBadTagException) {
|
||||
Log.e(TAG, "AEADBadTagException. Class: " + e.javaClass + ", Msg: " + e.message)
|
||||
} catch (e: IllegalStateException) {
|
||||
Crashlytics.logException(e)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue