From cc7f567fee77cb64ba25fbf368c8e7004d1c18a0 Mon Sep 17 00:00:00 2001 From: Tangem Date: Fri, 28 Apr 2023 20:12:02 +0800 Subject: [PATCH] Updated on 2026-08-14 --- .../ui/stateSubscribers/SendStateSubscriber.kt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/tangem/tap/features/send/ui/stateSubscribers/SendStateSubscriber.kt b/app/src/main/java/com/tangem/tap/features/send/ui/stateSubscribers/SendStateSubscriber.kt index 6e2bf1f5e9..9e9798eb3a 100644 --- a/app/src/main/java/com/tangem/tap/features/send/ui/stateSubscribers/SendStateSubscriber.kt +++ b/app/src/main/java/com/tangem/tap/features/send/ui/stateSubscribers/SendStateSubscriber.kt @@ -320,7 +320,11 @@ class SendStateSubscriber(fragment: BaseStoreFragment) : FragmentStateSubscriber totalTokenLayout.show(false) tvReceiptAmountValue.update("${receipt.amountFiat} ${receipt.symbols.fiat}") tvReceiptFeeValue.update("${receipt.feeFiat} ${receipt.symbols.fiat}") - llTotalContainer.tvTotalValue.update("${roughOrEmpty(receipt.totalFiat)} ${receipt.symbols.fiat}") + llTotalContainer.tvTotalValue.post { + llTotalContainer.tvTotalValue.update( + "${roughOrEmpty(receipt.totalFiat)} ${receipt.symbols.fiat}", + ) + } val willSent = getString( R.string.send_total_subtitle_format, @@ -335,7 +339,9 @@ class SendStateSubscriber(fragment: BaseStoreFragment) : FragmentStateSubscriber totalTokenLayout.show(false) tvReceiptAmountValue.update("${receipt.amountCrypto} ${receipt.symbols.crypto}") tvReceiptFeeValue.update("${receipt.feeCrypto} ${receipt.symbols.crypto}") - llTotalContainer.tvTotalValue.update("${receipt.totalCrypto} ${receipt.symbols.crypto}") + llTotalContainer.tvTotalValue.post { + llTotalContainer.tvTotalValue.update("${receipt.totalCrypto} ${receipt.symbols.crypto}") + } if (receipt.willSentFiat == UNKNOWN_AMOUNT_SIGN) { llTotalContainer.tvWillBeSentValue.hide() @@ -357,7 +363,11 @@ class SendStateSubscriber(fragment: BaseStoreFragment) : FragmentStateSubscriber totalTokenLayout.show(false) tvReceiptAmountValue.update("${receipt.amountFiat} ${receipt.symbols.fiat}") tvReceiptFeeValue.update("${receipt.feeFiat} ${receipt.symbols.fiat}") - llTotalContainer.tvTotalValue.update("${roughOrEmpty(receipt.totalFiat)} ${receipt.symbols.fiat}") + llTotalContainer.tvTotalValue.post { + llTotalContainer.tvTotalValue.update( + "${roughOrEmpty(receipt.totalFiat)} ${receipt.symbols.fiat}", + ) + } val willSent = getString( R.string.send_total_subtitle_asset_format,