summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/list/ContactListItemView.java
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-04-01 14:46:30 -0700
committerAndrew Lee <anwlee@google.com>2014-04-01 22:00:07 +0000
commitd632975fd69f4e0994d6fe66f099ab714ed709b1 (patch)
treece002c36eb61c26b70098b6d4a31bec8bbb9a437 /src/com/android/contacts/common/list/ContactListItemView.java
parent62dbbf2f10e0e3bcb4d699d859a71a68c896f4a7 (diff)
downloadandroid_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
Diffstat (limited to 'src/com/android/contacts/common/list/ContactListItemView.java')
-rw-r--r--src/com/android/contacts/common/list/ContactListItemView.java5
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.