Improve sort order of email addresses in auto-complete popup

This commit is contained in:
cketti 2021-01-27 02:50:34 +01:00
parent 2b769f8db3
commit 61949eaff9

View file

@ -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,