commit 645476d0b850a48616cca07b724b57e9a3909175
parent 9cfe2527d089d7cb3ea1dc329c073aafd947ef17
Author: Iván Ávalos <avalos@disroot.org>
Date: Mon, 19 Oct 2026 14:24:07 +0200
[wallet] add accessibility labels to main screen actions
Diffstat:
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/balances/BalancesPagerComposable.kt b/wallet/src/main/java/net/taler/wallet/balances/BalancesPagerComposable.kt
@@ -648,7 +648,8 @@ fun BalanceActionRow(
modifier = Modifier.fillMaxWidth(),
) {
ActionButton(
- icon = { Icon(Icons.AutoMirrored.Default.ArrowForward, contentDescription = null) },
+ icon = { Icon(Icons.AutoMirrored.Default.ArrowForward,
+ contentDescription = stringResource(R.string.transactions_send_funds)) },
label = { Text(stringResource(R.string.transactions_send_funds)) },
shape = CircleShape,
enabled = !disableActions && !balance.disablePeerPayments,
@@ -659,7 +660,8 @@ fun BalanceActionRow(
)
ActionButton(
- icon = { Icon(Icons.AutoMirrored.Default.ArrowBack, contentDescription = null) },
+ icon = { Icon(Icons.AutoMirrored.Default.ArrowBack,
+ contentDescription = stringResource(R.string.transactions_receive_funds)) },
label = { Text(stringResource(R.string.transactions_receive_funds)) },
shape = CircleShape,
enabled = !disableActions && !balance.disablePeerPayments,
@@ -670,7 +672,8 @@ fun BalanceActionRow(
)
ActionButton(
- icon = { Icon(Icons.Default.ArrowDownward, contentDescription = null) },
+ icon = { Icon(Icons.Default.ArrowDownward,
+ contentDescription = stringResource(R.string.withdraw_button_label)) },
label = { Text(stringResource(R.string.withdraw_button_label)) },
shape = CircleShape,
modifier = Modifier.weight(1f),
@@ -681,7 +684,8 @@ fun BalanceActionRow(
)
ActionButton(
- icon = { Icon(Icons.Default.ArrowUpward, contentDescription = null) },
+ icon = { Icon(Icons.Default.ArrowUpward,
+ contentDescription = stringResource(R.string.send_deposit_button_label)) },
label = { Text(stringResource(R.string.send_deposit_button_label)) },
shape = CircleShape,
modifier = Modifier.weight(1f),
@@ -703,7 +707,8 @@ fun BalanceAssetsRow(
modifier = Modifier.fillMaxWidth(),
) {
ActionButton(
- icon = { Icon(painterResource(R.drawable.ic_discounts), contentDescription = null) },
+ icon = { Icon(painterResource(R.drawable.ic_discounts),
+ contentDescription = stringResource(R.string.discounts_title)) },
label = { Text(stringResource(R.string.discounts_title)) },
onClick = onShowDiscounts,
modifier = Modifier.weight(1f).padding(horizontal = 6.dp),
@@ -712,7 +717,8 @@ fun BalanceAssetsRow(
)
ActionButton(
- icon = { Icon(Icons.Default.EventRepeat, contentDescription = null) },
+ icon = { Icon(Icons.Default.EventRepeat,
+ contentDescription = stringResource(R.string.passes_title)) },
label = { Text(stringResource(R.string.passes_title)) },
onClick = onShowPasses,
modifier = Modifier.weight(1f).padding(horizontal = 6.dp),
@@ -721,7 +727,8 @@ fun BalanceAssetsRow(
)
ActionButton(
- icon = { Icon(painterResource(R.drawable.ic_donau), contentDescription = null) },
+ icon = { Icon(painterResource(R.drawable.ic_donau),
+ contentDescription = stringResource(R.string.balances_section_statements)) },
label = { Text(stringResource(R.string.balances_section_statements)) },
onClick = onShowStatements,
modifier = Modifier.weight(1f).padding(horizontal = 6.dp),