From caa611f88d374f18ca229749760d10947fdac61a Mon Sep 17 00:00:00 2001 From: Sid Soundararajan Date: Wed, 25 May 2016 17:08:12 -0700 Subject: 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 --- packages/SystemUI/res/layout-television/recents_tv_task_card_view.xml | 1 - .../SystemUI/src/com/android/systemui/recents/tv/views/TaskCardView.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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 08a1a93f05cb..201f47d4348c 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 4eca5d56fc3e..758f93a5f5d5 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 @@ public class TaskCardView extends LinearLayout { mTitleTextView.setText(task.title); mBadgeView.setImageDrawable(task.icon); setThumbnailView(); + setContentDescription(task.titleDescription); } public Task getTask() { -- cgit v1.2.3-59-g8ed1b