Updated on 2026-08-14
This commit is contained in:
parent
17174cbde8
commit
19f7fc1e27
3 changed files with 5 additions and 5 deletions
|
|
@ -78,13 +78,13 @@ class BlockchainDemoActivity : AppCompatActivity() {
|
|||
walletManager.update()
|
||||
withContext(Dispatchers.Main) {
|
||||
binding.tvBalance.text =
|
||||
"${walletManager.wallet.balances[AmountType.Coin]?.value
|
||||
"${walletManager.wallet.balances[AmountType.Coin]?.value?.toPlainString()
|
||||
?: "error"} ${walletManager.blockchain.currency}"
|
||||
val token = walletManager.wallet.balances[AmountType.Token]
|
||||
if (token != null) {
|
||||
binding.tvBalance.text = token.currencySymbol + " " + token.value
|
||||
binding.tvBalance.text = token.value?.toPlainString() + " " + token.currencySymbol
|
||||
binding.etSumToSend.text = Editable.Factory.getInstance().newEditable(
|
||||
token.value.toString()
|
||||
token.value?.toPlainString() ?: ""
|
||||
)
|
||||
} else {
|
||||
binding.etSumToSend.text =
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.tangem.blockchain.bitcoin
|
|||
|
||||
import com.tangem.blockchain.common.TransactionData
|
||||
import com.tangem.blockchain.common.extensions.Result
|
||||
import com.tangem.blockchain.common.extensions.isZero
|
||||
import com.tangem.common.extensions.isZero
|
||||
import org.bitcoinj.core.*
|
||||
import org.bitcoinj.crypto.TransactionSignature
|
||||
import org.bitcoinj.script.Script
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package com.tangem.blockchain.common.extensions
|
||||
package com.tangem.common.extensions
|
||||
|
||||
import java.math.BigDecimal
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue