diff options
| author | 2025-01-10 15:24:33 +0000 | |
|---|---|---|
| committer | 2025-01-10 16:08:29 +0000 | |
| commit | 9bc72e07caf4e7ffbaa37730d684540ab7236d70 (patch) | |
| tree | e638006f77640e1abfca26858d2ef2c33e6bbd01 | |
| parent | 6988e7a4a85b5e5ad8534849676afb43fd44ff83 (diff) | |
TalkBack should not announce the decorative icon
Bug: 386884795
Flag: NONE bug fix
Test: tested with Talkback
Change-Id: If62033ad4655ec08fc3fd7f24e20103ad93ebfd2
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/touchpad/tutorial/ui/composable/TutorialSelectionScreen.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/touchpad/tutorial/ui/composable/TutorialSelectionScreen.kt b/packages/SystemUI/src/com/android/systemui/touchpad/tutorial/ui/composable/TutorialSelectionScreen.kt index 66a900bd72d8..c8a58400069e 100644 --- a/packages/SystemUI/src/com/android/systemui/touchpad/tutorial/ui/composable/TutorialSelectionScreen.kt +++ b/packages/SystemUI/src/com/android/systemui/touchpad/tutorial/ui/composable/TutorialSelectionScreen.kt @@ -218,9 +218,11 @@ private fun TutorialButton( verticalArrangement = Arrangement.Center, horizontalAlignment = Alignment.CenterHorizontally, ) { + // contentDescription is set to null because the icon is decorative and we don't want to + // repeat the text twice Icon( imageVector = icon, - contentDescription = text, + contentDescription = null, modifier = Modifier.width(30.dp).height(30.dp), tint = iconColor, ) |