Updated on 2026-08-14

This commit is contained in:
Tangem 2022-06-29 19:11:10 +03:00
commit 7cda69f0bf
6 changed files with 14 additions and 12 deletions

View file

@ -134,13 +134,13 @@ class WalletDetailsFragment : Fragment(R.layout.fragment_wallet_details),
binding.srlWalletDetails.setOnRefreshListener {
if (selectedWallet.currencyData.status != BalanceStatus.Loading) {
store.dispatch(WalletAction.LoadWallet(
blockchain = BlockchainNetwork(
selectedWallet.currency.blockchain,
selectedWallet.currency.derivationPath,
emptyList()
)
blockchain = BlockchainNetwork(
selectedWallet.currency.blockchain,
selectedWallet.currency.derivationPath,
emptyList()
)
)
)
}
}
@ -165,12 +165,10 @@ class WalletDetailsFragment : Fragment(R.layout.fragment_wallet_details),
private fun setupCurrency(currencyData: BalanceWidgetData, currency: Currency) = with(binding) {
tvCurrencyTitle.text = currencyData.currency
if (currency is Currency.Token) {
tvCurrencySubtitle.text = currency.blockchain.tokenDisplayName()
tvCurrencySubtitle.show()
} else {
tvCurrencySubtitle.hide()
}
tvCurrencySubtitle.text = tvCurrencySubtitle.getString(
R.string.wallet_currency_subtitle,
currency.blockchain.fullName
)
}
private fun setupButtons(selectedWallet: WalletData) = with(binding) {