From 39a3e6b7d449b9d9183109b02a7064567ca6d4d7 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Wed, 21 Aug 2019 14:05:11 -0500 Subject: [PATCH] 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. --- .../agorise/bitsybitshareswallet/fragments/SettingsFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt index bc67499..ea1606f 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/SettingsFragment.kt @@ -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) } } })