diff options
author | Nancy Chen <nancychen@google.com> | 2015-11-05 23:05:10 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-11-05 23:05:10 +0000 |
commit | 4bcdca947363b907640cc2e4b903a40ad046a2ab (patch) | |
tree | 05f6456ca501ed14d8797c83cf4b285b891f24c9 /src/com/android/dialer/calllog | |
parent | 1201742b1689d95a262f3f807aebbc290ef6d544 (diff) | |
parent | e5491640048c15c60a00c4a04272c52bcf7eb7a4 (diff) |
Merge "Format number of new voicemail before displaying." into ub-contactsdialer-a-dev
Diffstat (limited to 'src/com/android/dialer/calllog')
-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); |