diff options
author | Nancy Chen <nancychen@google.com> | 2015-11-05 23:12:59 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-05 23:12:59 +0000 |
commit | ff5a9e9bf40010ae86cc1afc0294307f3dccdb0e (patch) | |
tree | 3bb046b32b116cbcb6ae83e0024b643209833be7 | |
parent | 88ef0eb37be8f72c8b6f7bbb0641627ef7042bea (diff) | |
parent | d76cdd27638dd286901de0c918ef568480f1dd25 (diff) |
Merge "Format number of new voicemail before displaying." into ub-contactsdialer-a-dev am: 4bcdca9473
am: d76cdd2763
* commit 'd76cdd27638dd286901de0c918ef568480f1dd25':
Format number of new voicemail before displaying.
-rw-r--r-- | src/com/android/dialer/calllog/DefaultVoicemailNotifier.java | 3 |
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); |