taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

commit 9ee4eb7d4b52ae453b8181686575a31a76818b2d
parent 2fd7e0962eef35bd5cc69da649e3db8fd96e3699
Author: Iván Ávalos <avalos@disroot.org>
Date:   Mon, 22 Apr 2024 09:06:16 -0600

[wallet] DD53: address cta-withdraw-done issues

bug 0008726

Diffstat:
Mwallet/src/main/java/net/taler/wallet/withdraw/TransactionWithdrawalComposable.kt | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/wallet/src/main/java/net/taler/wallet/withdraw/TransactionWithdrawalComposable.kt b/wallet/src/main/java/net/taler/wallet/withdraw/TransactionWithdrawalComposable.kt @@ -81,11 +81,13 @@ fun TransactionWithdrawalComposable( ActionButton(tx = t, listener = actionListener) - TransactionAmountComposable( - label = stringResource(R.string.amount_chosen), - amount = t.amountRaw.withSpec(spec), - amountType = AmountType.Neutral, - ) + if (t.amountRaw != t.amountEffective) { + TransactionAmountComposable( + label = stringResource(R.string.amount_chosen), + amount = t.amountRaw.withSpec(spec), + amountType = AmountType.Neutral, + ) + } val fee = t.amountRaw - t.amountEffective if (!fee.isZero()) {