Avoid crash in SendTransactionFragment

- Avoided crash in SendTransactionFragment 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 13:56:16 -05:00
parent 54c8bbce19
commit ae3498e103
1 changed files with 2 additions and 0 deletions

View File

@ -153,6 +153,8 @@ class SendTransactionFragment : ConnectedFragment(), ZXingScannerView.ResultHand
wifKey = CryptoUtils.decrypt(it, encryptedWIF)
} catch (e: AEADBadTagException) {
Log.e(TAG, "AEADBadTagException. Class: " + e.javaClass + ", Msg: " + e.message)
} catch (e: IllegalStateException) {
Crashlytics.logException(e)
}
}
})