diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/ConnectedActivity.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/ConnectedActivity.kt index c74ee12..e5ba8c4 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/ConnectedActivity.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/ConnectedActivity.kt @@ -185,6 +185,9 @@ abstract class ConnectedActivity : AppCompatActivity(), ServiceConnection { .getString(Constants.KEY_CURRENT_ACCOUNT_ID, "") ?: "" if (userId != "") mCurrentAccount = UserAccount(userId) + + // Make sure crashlytics reports contains the account ID + Crashlytics.setString(Constants.CRASHLYTICS_KEY_ACCOUNT_ID, userId) } /** diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/Constants.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/Constants.kt index bf55faf..1d8a399 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/Constants.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/utils/Constants.kt @@ -136,4 +136,7 @@ object Constants { /** Key used to add the device language to the Crashlytics report */ const val CRASHLYTICS_KEY_LANGUAGE = "crashlytics_key_language" + + /** Key used to add the account ID to the Crashlytics report*/ + const val CRASHLYTICS_KEY_ACCOUNT_ID = "crashlytics_key_account_id" }