diff options
| author | 2025-01-11 11:33:56 -0800 | |
|---|---|---|
| committer | 2025-01-11 11:33:56 -0800 | |
| commit | e452657bd578d6508e71efa3d5f517b4488505c4 (patch) | |
| tree | da5edda064168b510d61569c65664f7520a591ed | |
| parent | 84684065793e5dbc9bfcbc25886120ee7184526d (diff) | |
| parent | 9bc72e07caf4e7ffbaa37730d684540ab7236d70 (diff) | |
Merge "TalkBack should not announce the decorative icon" into main
| -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, ) |