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.
master
Severiano Jaramillo 2019-08-21 14:05:11 -05:00
parent ae3498e103
commit 39a3e6b7d4
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}
}
})