diff options
author | Yorke Lee <yorkelee@google.com> | 2014-04-08 15:00:47 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-04-08 15:00:47 -0700 |
commit | eabf27292960173c0600e022c64919453741c93f (patch) | |
tree | 5e06a09ec656d0f83ff8e201aae78638e77be533 /src/com/android/contacts/common/list/ContactListItemView.java | |
parent | 4f4ef7cf6ec89f9edfeaea2cc77f2d2c6442d73d (diff) | |
download | android_packages_apps_ContactsCommon-eabf27292960173c0600e022c64919453741c93f.tar.gz android_packages_apps_ContactsCommon-eabf27292960173c0600e022c64919453741c93f.tar.bz2 android_packages_apps_ContactsCommon-eabf27292960173c0600e022c64919453741c93f.zip |
Temporarily disable phone number formatting in search
Formatting the phone numbers after highlighting sequences had been
assigned was causing possible IndexOutOfBoundsExceptions when
applying the highlights. Temporarily disable formatting until
highlighting logic is better refactored between the various
PhoneNumberListAdapters and ContactListItemView.
Bug: 13906816
Change-Id: I9082a68ee7c2aaa376da203a98a534098bb43e14
Diffstat (limited to 'src/com/android/contacts/common/list/ContactListItemView.java')
-rw-r--r-- | src/com/android/contacts/common/list/ContactListItemView.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/contacts/common/list/ContactListItemView.java b/src/com/android/contacts/common/list/ContactListItemView.java index 292e63a3..b6aa800a 100644 --- a/src/com/android/contacts/common/list/ContactListItemView.java +++ b/src/com/android/contacts/common/list/ContactListItemView.java @@ -1027,12 +1027,9 @@ public class ContactListItemView extends ViewGroup } else { getDataView(); - if (countryIso != null) { - String formattedText = PhoneNumberUtils.formatNumber(text, countryIso); - if (formattedText != null) { - text = formattedText; - } - } + // TODO: Format number using PhoneNumberUtils.formatNumber before assigning it to + // mDataView. Make sure that determination of the highlight sequences are done only + // after number formatting. // Sets phone number texts for display after highlighting it, if applicable. // CharSequence textToSet = text; |