From c9bcbd7f788d71c14076d1c2fb8e8d4ad359a261 Mon Sep 17 00:00:00 2001 From: Dmitri Plotnikov Date: Thu, 1 Oct 2009 00:42:39 -0700 Subject: [Issue 2139526] Prioritizing phone number over email address in contacts search suggestions Change-Id: I3799b81fde799b18c4e431f1662f1f5d47fe0308 --- src/com/android/providers/contacts/GlobalSearchSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android/providers/contacts/GlobalSearchSupport.java') diff --git a/src/com/android/providers/contacts/GlobalSearchSupport.java b/src/com/android/providers/contacts/GlobalSearchSupport.java index 13ead67..e939ef7 100644 --- a/src/com/android/providers/contacts/GlobalSearchSupport.java +++ b/src/com/android/providers/contacts/GlobalSearchSupport.java @@ -155,10 +155,10 @@ public class GlobalSearchSupport { if (!titleIsOrganization && hasOrganization) { text2 = organization; - } else if (!titleIsEmail && hasEmail) { - text2 = email; } else if (!titleIsPhone && hasPhone) { text2 = phoneNumber; + } else if (!titleIsEmail && hasEmail) { + text2 = email; } if (photoUri != null) { -- cgit v1.1