commit | 23e2836c1e9cbe8996a1344301e69d67bb617891 | [log] [tgz] |
---|---|---|
author | Paul Soulos <psoulos@google.com> | Fri Aug 29 14:57:08 2014 -0700 |
committer | Paul Soulos <psoulos@google.com> | Fri Aug 29 14:57:11 2014 -0700 |
tree | 9bf2e45b72fb4fb1e2761c20427b239a96212707 | |
parent | 9bb1a80e499d7c5c673a043011ff921ca58788f7 [diff] [blame] |
Adds TalkBack content details to Contact card bug: 17308004 Change-Id: I357c6b508eaa3ef7dbb61be99c09806b322f6770
diff --git a/src/com/android/contacts/interactions/SmsInteraction.java b/src/com/android/contacts/interactions/SmsInteraction.java index 3f86eef..bc55572 100644 --- a/src/com/android/contacts/interactions/SmsInteraction.java +++ b/src/com/android/contacts/interactions/SmsInteraction.java
@@ -152,4 +152,12 @@ public Integer getType() { return mValues.getAsInteger(Sms.TYPE); } + + @Override + public String getContentDescription(Context context) { + String messageDetails = getViewHeader(context) + ". " + getViewBody(context) + ". " + + getViewFooter(context); + return context.getResources().getString(R.string.content_description_recent_sms, + messageDetails); + } }