From 89f033e186043aeacaf16f73df44f2e0e6a106fa Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Wed, 25 Apr 2012 17:49:04 -0700 Subject: Don't suggest invisible for aggregation Bug 6400450 Change-Id: I4b5ed4a331f6740c3954b232633076e60e1de140 --- .../android/providers/contacts/aggregation/ContactAggregator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/com/android/providers/contacts/aggregation') diff --git a/src/com/android/providers/contacts/aggregation/ContactAggregator.java b/src/com/android/providers/contacts/aggregation/ContactAggregator.java index f1d14a2..6ad93c9 100644 --- a/src/com/android/providers/contacts/aggregation/ContactAggregator.java +++ b/src/com/android/providers/contacts/aggregation/ContactAggregator.java @@ -1633,10 +1633,11 @@ public class ContactAggregator { firstLetters.add(firstLetter); final String selection = "(" + NameLookupColumns.NORMALIZED_NAME + " GLOB '" + firstLetter + "*') AND " - + NameLookupColumns.NAME_TYPE + " IN(" + + "(" + NameLookupColumns.NAME_TYPE + " IN(" + NameLookupType.NAME_COLLATION_KEY + "," + NameLookupType.EMAIL_BASED_NICKNAME + "," - + NameLookupType.NICKNAME + ")"; + + NameLookupType.NICKNAME + ")) AND " + + RawContacts.CONTACT_ID + " IN " + Tables.DEFAULT_DIRECTORY; matchAllCandidates(db, selection, candidates, matcher, ContactMatcher.MATCHING_ALGORITHM_APPROXIMATE, String.valueOf(FIRST_LETTER_SUGGESTION_HIT_LIMIT)); -- cgit v1.1