diff options
author | Nancy Chen <nancychen@google.com> | 2015-11-05 23:09:22 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-05 23:09:22 +0000 |
commit | d76cdd27638dd286901de0c918ef568480f1dd25 (patch) | |
tree | 3bb046b32b116cbcb6ae83e0024b643209833be7 | |
parent | 15bff3251371e2c6c41e0c7a5a4e985718840f09 (diff) | |
parent | 4bcdca947363b907640cc2e4b903a40ad046a2ab (diff) |
Merge "Format number of new voicemail before displaying." into ub-contactsdialer-a-dev
am: 4bcdca9473
* commit '4bcdca947363b907640cc2e4b903a40ad046a2ab':
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); |