diff options
| author | 2024-07-09 15:08:51 +0000 | |
|---|---|---|
| committer | 2024-07-09 15:08:51 +0000 | |
| commit | 40388fabedcec4cb48b5ebf848816fee21c99058 (patch) | |
| tree | e84560aaca727e193433004a98ca1a99af68a1cc | |
| parent | 0f229086d4010f96140a4e6feb28bfe152ae8ccd (diff) | |
| parent | b043e9b1bbbb9c014ac559af1f323c94645c265d (diff) | |
Merge "Removing content descriptions from icons to prevent two accessibility announcements" into main
| -rw-r--r-- | packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt | 7 |
1 files changed, 2 insertions, 5 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..e2d693eb1089 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 @@ -701,7 +701,7 @@ private fun Toolbar( ), verticalAlignment = Alignment.CenterVertically ) { - Icon(Icons.Default.Close, stringResource(R.string.button_to_remove_widget)) + Icon(Icons.Default.Close, contentDescription = null) Text( text = stringResource(R.string.button_to_remove_widget), ) @@ -714,10 +714,7 @@ private fun Toolbar( modifier = Modifier.align(Alignment.CenterEnd), onClick = onEditDone, ) { - Icon( - Icons.Default.Check, - stringResource(id = R.string.hub_mode_editing_exit_button_text) - ) + Icon(Icons.Default.Check, contentDescription = null) Text( text = stringResource(R.string.hub_mode_editing_exit_button_text), ) |