| commit | caa611f88d374f18ca229749760d10947fdac61a | [log] [tgz] |
|---|---|---|
| author | Sid Soundararajan <ssoundar@google.com> | Wed May 25 17:08:12 2016 -0700 |
| committer | Sid Soundararajan <ssoundar@google.com> | Wed May 25 17:08:12 2016 -0700 |
| tree | 85730f82e574e9f76d1e7e0922a8bdc438b02d5e | |
| parent | 135c4760fddc7809ea5f7e9d58bc3f4b3a076875 [diff] |
Make content descriptions of task cards, the title description Use the title description as content description for the task card, this should be better for talkback. BUG: 28594452 Change-Id: Idc97004f1370a35ea5328c4e9e46a72a9349c8f4
diff --git a/packages/SystemUI/res/layout-television/recents_tv_task_card_view.xml b/packages/SystemUI/res/layout-television/recents_tv_task_card_view.xml index 08a1a93..201f47d 100644 --- a/packages/SystemUI/res/layout-television/recents_tv_task_card_view.xml +++ b/packages/SystemUI/res/layout-television/recents_tv_task_card_view.xml
@@ -19,7 +19,6 @@ android:layout_height="wrap_content" android:focusable="true" android:focusableInTouchMode="true" - android:contentDescription="@string/status_bar_recent_inspect_item_title" android:layout_gravity="center" android:layout_centerInParent="true" android:clipToPadding="false"
diff --git a/packages/SystemUI/src/com/android/systemui/recents/tv/views/TaskCardView.java b/packages/SystemUI/src/com/android/systemui/recents/tv/views/TaskCardView.java index 4eca5d5..758f93a 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/tv/views/TaskCardView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/tv/views/TaskCardView.java
@@ -101,6 +101,7 @@ mTitleTextView.setText(task.title); mBadgeView.setImageDrawable(task.icon); setThumbnailView(); + setContentDescription(task.titleDescription); } public Task getTask() {