summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-11-04 15:04:22 -0800
committerNancy Chen <nancychen@google.com>2015-11-04 15:04:22 -0800
commite5491640048c15c60a00c4a04272c52bcf7eb7a4 (patch)
tree2ca5ba9e46c596f5936c818b057a0d03547c1d33
parent7d048b14177813c9c2b857c67d69698af466a5c7 (diff)
Format number of new voicemail before displaying.
Format the number of the new voicemail for display to improve readability and announce the number with individual digits in text-to-speech. Bug: 25122678 Change-Id: I96ef815db72b5b0571f9dd662d68f4f6cc6d0416
-rw-r--r--src/com/android/dialer/calllog/DefaultVoicemailNotifier.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
index 635e87489..ff9137249 100644
--- a/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
+++ b/src/com/android/dialer/calllog/DefaultVoicemailNotifier.java
@@ -31,6 +31,7 @@ import android.database.Cursor;
import android.net.Uri;
import android.provider.CallLog.Calls;
import android.provider.ContactsContract.PhoneLookup;
+import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
import android.util.Log;
@@ -153,7 +154,7 @@ public class DefaultVoicemailNotifier {
// Look it up in the database.
name = mNameLookupQuery.query(newCall.number);
if (TextUtils.isEmpty(name)) {
- name = newCall.number;
+ name = PhoneNumberUtils.formatNumber(newCall.number, newCall.countryIso);
}
}
names.put(newCall.number, name);