Consider default email address in auto-complete suggestions
@@ -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,
