Skip to content

Commit

Permalink
fix: [litecoin-foundation#126] the issue came from FragmentBalanceSee…
Browse files Browse the repository at this point in the history
…dReminder.fetchSeedPhrase, so we just wrap with runCatching for now to avoid crash (litecoin-foundation#263)
  • Loading branch information
andhikayuana authored Nov 12, 2024
1 parent 11d5f25 commit 1c1e19c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ class FragmentBalanceSeedReminder : Fragment() {
registerAnalyticsError("null_in_fragment_balance_fetch_seed")
}
else {
seedPhraseTextView.text = String(BRKeyStore.getPhrase(this.activity, 0)) ?: "NO_PHRASE"
seedPhraseTextView.text = runCatching { BRKeyStore.getPhrase(this.activity, 0) }
.getOrNull()?.decodeToString() ?: "NO_PHRASE"
}
}
private fun animateClose() {
Expand Down

0 comments on commit 1c1e19c

Please sign in to comment.