diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-08 12:00:52 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-05-08 12:01:45 -0700 |
commit | 0451f9a70032a866140d5caa6aa6303062774d3e (patch) | |
tree | 8f6593c184526eeef0267084ca4a9e3cc1330fc3 /src/com/android/dialer | |
parent | 84586d3b8eef15f77a91d371b6589e66105effa8 (diff) |
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
Diffstat (limited to 'src/com/android/dialer')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogListItemHelper.java | 14 |
1 files changed, 14 insertions, 0 deletions
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)); } /** |