From 6d98cf688855372ffbef12a41ef1f69f990409f1 Mon Sep 17 00:00:00 2001 From: Ta-wei Yen Date: Thu, 5 Nov 2015 17:33:58 -0800 Subject: Add phone number TTS to strings that show phone numbers. Bug:25452669 Change-Id: I9c1685ee05f2ffc2fc6ac94714c2ae4d1137ffbe --- src/com/android/dialer/calllog/DefaultVoicemailNotifier.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/com/android/dialer/calllog/DefaultVoicemailNotifier.java') 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()); -- cgit v1.2.3