diff options
author | Ta-wei Yen <twyen@google.com> | 2015-11-05 17:33:58 -0800 |
---|---|---|
committer | Ta-wei Yen <twyen@google.com> | 2015-11-06 23:32:53 +0000 |
commit | 6d98cf688855372ffbef12a41ef1f69f990409f1 (patch) | |
tree | 580ce3c4242b78696d47a045b93333cd4413878c /src/com/android/dialer/calllog/DefaultVoicemailNotifier.java | |
parent | a5437e6882bde69cb795ed8d929c1024a8fef16e (diff) |
Add phone number TTS to strings that show phone numbers.
Bug:25452669
Change-Id: I9c1685ee05f2ffc2fc6ac94714c2ae4d1137ffbe
Diffstat (limited to 'src/com/android/dialer/calllog/DefaultVoicemailNotifier.java')
-rw-r--r-- | src/com/android/dialer/calllog/DefaultVoicemailNotifier.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java index ff9137249..eccad58b3 100644 --- a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java +++ b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java @@ -36,6 +36,7 @@ import android.text.TextUtils; import android.util.Log; import com.android.common.io.MoreCloseables; +import com.android.contacts.common.util.ContactDisplayUtils; import com.android.contacts.common.util.PermissionsUtil; import com.android.dialer.DialtactsActivity; import com.android.dialer.R; @@ -213,8 +214,11 @@ public class DefaultVoicemailNotifier { // The text to show in the ticker, describing the new event. if (callToNotify != null) { - notificationBuilder.setTicker(resources.getString( - R.string.notification_new_voicemail_ticker, names.get(callToNotify.number))); + CharSequence msg = ContactDisplayUtils.getTtsSpannedPhoneNumberString( + resources, + R.string.notification_new_voicemail_ticker, + names.get(callToNotify.number)); + notificationBuilder.setTicker(msg); } mNotificationManager.notify(NOTIFICATION_TAG, NOTIFICATION_ID, notificationBuilder.build()); |