From c2cbfd9628a2bf4e72d29ef83dae88c2294eda9c Mon Sep 17 00:00:00 2001 From: cocod Date: Tue, 14 Jan 2025 00:46:52 +0000 Subject: 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 --- .../src/com/android/systemui/communal/ui/compose/CommunalHub.kt | 3 +-- 1 file changed, 1 insertion(+), 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)) -- cgit v1.2.3-59-g8ed1b