diff options
author | Andrew Lee <anwlee@google.com> | 2014-04-01 14:46:30 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-04-01 22:00:07 +0000 |
commit | d632975fd69f4e0994d6fe66f099ab714ed709b1 (patch) | |
tree | ce002c36eb61c26b70098b6d4a31bec8bbb9a437 | |
parent | 62dbbf2f10e0e3bcb4d699d859a71a68c896f4a7 (diff) | |
download | android_packages_apps_ContactsCommon-d632975fd69f4e0994d6fe66f099ab714ed709b1.tar.gz android_packages_apps_ContactsCommon-d632975fd69f4e0994d6fe66f099ab714ed709b1.tar.bz2 android_packages_apps_ContactsCommon-d632975fd69f4e0994d6fe66f099ab714ed709b1.zip |
Don't replace phone number text if formatted number is null.
Bug: 11734577
Change-Id: I21e11b9aed0dde06f96fcbdcc605cef0f2c4120f
-rw-r--r-- | src/com/android/contacts/common/list/ContactListItemView.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/list/ContactListItemView.java b/src/com/android/contacts/common/list/ContactListItemView.java index 0217620e..292e63a3 100644 --- a/src/com/android/contacts/common/list/ContactListItemView.java +++ b/src/com/android/contacts/common/list/ContactListItemView.java @@ -1028,7 +1028,10 @@ public class ContactListItemView extends ViewGroup getDataView(); if (countryIso != null) { - text = PhoneNumberUtils.formatNumber(text, countryIso); + String formattedText = PhoneNumberUtils.formatNumber(text, countryIso); + if (formattedText != null) { + text = formattedText; + } } // Sets phone number texts for display after highlighting it, if applicable. |