summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/contacts/aggregation
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2012-04-25 17:49:04 -0700
committerMakoto Onuki <omakoto@google.com>2012-04-25 18:00:00 -0700
commit89f033e186043aeacaf16f73df44f2e0e6a106fa (patch)
treec9e0f4e1fd07d400ba0269f4375815c35c0276cb /src/com/android/providers/contacts/aggregation
parent9d9994ea8f6b02d2c1afb48a9d776c4c26d6c989 (diff)
downloadpackages_providers_ContactsProvider-89f033e186043aeacaf16f73df44f2e0e6a106fa.zip
packages_providers_ContactsProvider-89f033e186043aeacaf16f73df44f2e0e6a106fa.tar.gz
packages_providers_ContactsProvider-89f033e186043aeacaf16f73df44f2e0e6a106fa.tar.bz2
Don't suggest invisible for aggregation
Bug 6400450 Change-Id: I4b5ed4a331f6740c3954b232633076e60e1de140
Diffstat (limited to 'src/com/android/providers/contacts/aggregation')
-rw-r--r--src/com/android/providers/contacts/aggregation/ContactAggregator.java5
1 files changed, 3 insertions, 2 deletions
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));