commit | c2cbfd9628a2bf4e72d29ef83dae88c2294eda9c | [log] [tgz] |
---|---|---|
author | cocod <cocod@google.com> | Tue Jan 14 00:46:52 2025 +0000 |
committer | Coco Duan <cocod@google.com> | Wed Jan 15 10:12:39 2025 -0800 |
tree | f4c20c2817875a15b2a1bea99b350d525c54ecf1 | |
parent | ece1572f4468384debc0492acfa753e3de681e44 [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
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 cc2a427..59e18e7 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 @@ ) { 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))