summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author cocod <cocod@google.com> 2025-01-14 00:46:52 +0000
committer Coco Duan <cocod@google.com> 2025-01-15 10:12:39 -0800
commitc2cbfd9628a2bf4e72d29ef83dae88c2294eda9c (patch)
treef4c20c2817875a15b2a1bea99b350d525c54ecf1
parentece1572f4468384debc0492acfa753e3de681e44 (diff)
Ensure the 'Add Widget' button icon is not announced
This fixes the issue that TalkBack announces twice "Add widgets" when focus on the "+ Add widgets" button in the empty state hub. Fixes: 378580523 Flag: EXEMPT bugfix Test: manually with TalkBack on Change-Id: I2969c1ea4d6ee0fdd7505ae63ecd8c7388e3a5ce
-rw-r--r--packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
index cc2a427d7939..59e18e726bc5 100644
--- a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
+++ b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt
@@ -1065,8 +1065,7 @@ private fun EmptyStateCta(contentPadding: PaddingValues, viewModel: BaseCommunal
) {
Icon(
imageVector = Icons.Default.Add,
- contentDescription =
- stringResource(R.string.label_for_button_in_empty_state_cta),
+ contentDescription = null,
modifier = Modifier.size(24.dp),
)
Spacer(Modifier.width(ButtonDefaults.IconSpacing))