diff options
author | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-06-17 15:22:35 -0700 |
---|---|---|
committer | Daisuke Miyakawa <dmiyakawa@google.com> | 2011-06-17 15:43:48 -0700 |
commit | c591cc2ffecdd0038f787a133606752752294c13 (patch) | |
tree | bc06773defb3f2ba8f3bcbc7777b9350c1d339ae /src/com | |
parent | 6494f8d9faae80aca15d4da17d41c89349b55e8a (diff) | |
download | packages_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.java | 3 |
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; |