From 0451f9a70032a866140d5caa6aa6303062774d3e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 8 May 2015 12:00:52 -0700 Subject: Improve talkback on call log actions. - Remove previous/next hints; not needed. + Add descriptions for new actions. - Make TextViews not important for accessibility. Descriptions on the actions will be used instead. Bug: 20433758 Change-Id: I043b03075631134f37151e165360b038f3961b2a --- src/com/android/dialer/calllog/CallLogListItemHelper.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/calllog/CallLogListItemHelper.java b/src/com/android/dialer/calllog/CallLogListItemHelper.java index 0e94ef402..7ec6752e4 100644 --- a/src/com/android/dialer/calllog/CallLogListItemHelper.java +++ b/src/com/android/dialer/calllog/CallLogListItemHelper.java @@ -99,9 +99,23 @@ import com.android.dialer.R; TextUtils.expandTemplate( mResources.getString(R.string.description_voicemail_action), nameOrNumber)); + views.createNewContactButtonView.setContentDescription( + TextUtils.expandTemplate( + mResources.getString(R.string.description_create_new_contact_action), + nameOrNumber)); + + views.addToExistingContactButtonView.setContentDescription( + TextUtils.expandTemplate( + mResources.getString(R.string.description_add_to_existing_contact_action), + nameOrNumber)); + views.detailsButtonView.setContentDescription( TextUtils.expandTemplate( mResources.getString(R.string.description_details_action), nameOrNumber)); + + views.reportButtonView.setContentDescription( + TextUtils.expandTemplate( + mResources.getString(R.string.description_report_action), nameOrNumber)); } /** -- cgit v1.2.3