From 6c89d1e310c1b0ff74d2af1a1ce13154f60c09f2 Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Thu, 9 Apr 2020 13:35:58 -0400 Subject: [PATCH] Controls a11y - Fix title repetition, min height There is no need for a content description on the associated icon, as the title is sufficient. Bug: 153288023 Bug: 153291530 Test: talkback Change-Id: I8617151cbbbb24f437e93a7c106997ef355206b6 --- packages/SystemUI/res/layout/controls_spinner_item.xml | 1 + packages/SystemUI/res/layout/controls_with_favorites.xml | 2 ++ .../android/systemui/controls/ui/ControlsUiControllerImpl.kt | 2 -- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/res/layout/controls_spinner_item.xml b/packages/SystemUI/res/layout/controls_spinner_item.xml index 00654c8325254..45540f102de1d 100644 --- a/packages/SystemUI/res/layout/controls_spinner_item.xml +++ b/packages/SystemUI/res/layout/controls_spinner_item.xml @@ -30,6 +30,7 @@ android:layout_gravity="center" android:layout_width="@dimen/controls_header_app_icon_size" android:layout_height="@dimen/controls_header_app_icon_size" + android:contentDescription="@null" android:layout_marginEnd="10dp" /> @@ -43,6 +44,7 @@ android:layout_gravity="center" android:layout_width="@dimen/controls_header_app_icon_size" android:layout_height="@dimen/controls_header_app_icon_size" + android:contentDescription="@null" android:layout_marginEnd="10dp" /> (R.id.app_icon).apply { - setContentDescription(selectionItem.getTitle()) setImageDrawable(selectionItem.icon) } @@ -585,7 +584,6 @@ private class ItemAdapter( setText(item.getTitle()) } view.requireViewById(R.id.app_icon).apply { - setContentDescription(item.appName) setImageDrawable(item.icon) } return view