From 0bc261ec461e610dd7979d55d4160ba3737a16d2 Mon Sep 17 00:00:00 2001 From: Prince Date: Tue, 9 Jul 2024 14:38:00 +0000 Subject: Removing semantics from add widget text to prevent double accessibility announcement Fixes: 346893512 Test: Device Tested Flag: NONE Small Accessibility change Change-Id: Idf72e57ad4c6972ca3c24154172bdeac00bd039a --- .../src/com/android/systemui/communal/ui/compose/CommunalHub.kt | 5 +---- 1 file changed, 1 insertion(+), 4 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 b7d6e09515ac..4a07852546d7 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 @@ -661,10 +661,7 @@ private fun Toolbar( val addWidgetText = stringResource(R.string.hub_mode_add_widget_button_text) ToolbarButton( isPrimary = !removeEnabled, - modifier = - Modifier.align(Alignment.CenterStart).semantics { - contentDescription = addWidgetText - }, + modifier = Modifier.align(Alignment.CenterStart), onClick = onOpenWidgetPicker, ) { Icon(Icons.Default.Add, null) -- cgit v1.2.3-59-g8ed1b