Merge pull request #5055 from k9mail/auto_complete_email_order

Consider default email address in auto-complete suggestions
This commit is contained in:
cketti 2020-11-16 17:05:28 +01:00 committed by GitHub
commit a75c8de907
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,8 @@ 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.Contacts.SORT_KEY_PRIMARY + "," +
ContactsContract.CommonDataKinds.Email.IS_SUPER_PRIMARY + " DESC";
private static final String[] PROJECTION_NICKNAME = {
ContactsContract.Data.CONTACT_ID,