summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorDaisuke Miyakawa <dmiyakawa@google.com>2011-06-17 15:22:35 -0700
committerDaisuke Miyakawa <dmiyakawa@google.com>2011-06-17 15:43:48 -0700
commitc591cc2ffecdd0038f787a133606752752294c13 (patch)
treebc06773defb3f2ba8f3bcbc7777b9350c1d339ae /src/com
parent6494f8d9faae80aca15d4da17d41c89349b55e8a (diff)
downloadpackages_providers_ContactsProvider-c591cc2ffecdd0038f787a133606752752294c13.zip
packages_providers_ContactsProvider-c591cc2ffecdd0038f787a133606752752294c13.tar.gz
packages_providers_ContactsProvider-c591cc2ffecdd0038f787a133606752752294c13.tar.bz2
Prefer primary data to others.
Bug: 4723377 Change-Id: Iaeb74924a8567d049adcd91dfa03814a63abf088
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/providers/contacts/ContactsProvider2.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java
index 87ebda8..d56ba23 100644
--- a/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/src/com/android/providers/contacts/ContactsProvider2.java
@@ -436,7 +436,8 @@ public class ContactsProvider2 extends SQLiteContentProvider implements OnAccoun
+ DataUsageStatColumns.TIMES_USED + " DESC, "
+ Contacts.DISPLAY_NAME + ", "
+ Data.CONTACT_ID + ", "
- + Data.IS_SUPER_PRIMARY + " DESC";
+ + Data.IS_SUPER_PRIMARY + " DESC, "
+ + Data.IS_PRIMARY + " DESC";
/** Currently same as {@link #EMAIL_FILTER_SORT_ORDER} */
private static final String PHONE_FILTER_SORT_ORDER = EMAIL_FILTER_SORT_ORDER;