Improve sort order of email addresses in auto-complete popup
This commit is contained in:
parent
2b769f8db3
commit
61949eaff9
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,9 @@ public class RecipientLoader extends AsyncTaskLoader<List<Recipient>> {
|
|||
private static final String SORT_ORDER = "" +
|
||||
ContactsContract.CommonDataKinds.Email.TIMES_CONTACTED + " DESC, " +
|
||||
ContactsContract.Contacts.SORT_KEY_PRIMARY + "," +
|
||||
ContactsContract.CommonDataKinds.Email.IS_SUPER_PRIMARY + " DESC";
|
||||
ContactsContract.CommonDataKinds.Email.IS_SUPER_PRIMARY + " DESC, " +
|
||||
ContactsContract.CommonDataKinds.Email.IS_PRIMARY + " DESC, " +
|
||||
ContactsContract.Contacts._ID;
|
||||
|
||||
private static final String[] PROJECTION_NICKNAME = {
|
||||
ContactsContract.Data.CONTACT_ID,
|
||||
|
|
Loading…
Reference in a new issue