commit bdd47e0bf1e6491078de84b684476adbc055ec42
parent 1598fae3c6d0fab955f1ca23dfe79aef85ebb20b
Author: Torsten Grote <t@grobox.de>
Date: Wed, 3 Jan 2024 17:19:22 -0300
[wallet] Inform user when sending isn't working due to insufficient balance
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/wallet/src/main/java/net/taler/wallet/SendFundsFragment.kt b/wallet/src/main/java/net/taler/wallet/SendFundsFragment.kt
@@ -118,13 +118,17 @@ private fun SendFundsIntro(
value = text,
onValueChange = { input ->
isError = false
+ insufficientBalance = false
text = input
},
label = { Text(stringResource(R.string.send_amount)) },
supportingText = {
if (isError) Text(stringResource(R.string.receive_amount_invalid))
+ else if (insufficientBalance) {
+ Text(stringResource(R.string.payment_balance_insufficient))
+ }
},
- isError = isError,
+ isError = isError || insufficientBalance,
)
Text(
modifier = Modifier,