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
This commit is contained in:
Sid Soundararajan
2016-05-25 17:08:12 -07:00
parent 135c4760fd
commit caa611f88d
2 changed files with 1 additions and 1 deletions

View File

@@ -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"

View File

@@ -101,6 +101,7 @@ public class TaskCardView extends LinearLayout {
mTitleTextView.setText(task.title);
mBadgeView.setImageDrawable(task.icon);
setThumbnailView();
setContentDescription(task.titleDescription);
}
public Task getTask() {