Merge pull request #5055 from k9mail/auto_complete_email_order
Consider default email address in auto-complete suggestions
This commit is contained in:
commit
a75c8de907
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ public class RecipientLoader extends AsyncTaskLoader<List<Recipient>> {
|
||||||
|
|
||||||
private static final String SORT_ORDER = "" +
|
private static final String SORT_ORDER = "" +
|
||||||
ContactsContract.CommonDataKinds.Email.TIMES_CONTACTED + " DESC, " +
|
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 = {
|
private static final String[] PROJECTION_NICKNAME = {
|
||||||
ContactsContract.Data.CONTACT_ID,
|
ContactsContract.Data.CONTACT_ID,
|
||||||
|
|
Loading…
Reference in a new issue