mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prefer starred contacts
This commit is contained in:
parent
bc9112b5c1
commit
9aa3aaa2c2
1 changed files with 3 additions and 2 deletions
|
@ -811,7 +811,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
new String[]{
|
||||
ContactsContract.Contacts.DISPLAY_NAME,
|
||||
ContactsContract.CommonDataKinds.Email.DATA,
|
||||
ContactsContract.Contacts.PHOTO_THUMBNAIL_URI
|
||||
ContactsContract.Contacts.PHOTO_THUMBNAIL_URI,
|
||||
ContactsContract.Contacts.STARRED
|
||||
},
|
||||
ContactsContract.CommonDataKinds.Email.DATA + " <> ''" +
|
||||
" AND (" + ContactsContract.Contacts.DISPLAY_NAME + " LIKE ?" +
|
||||
|
@ -825,7 +826,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
item.name = cursor.getString(0);
|
||||
item.email = cursor.getString(1);
|
||||
item.avatar = cursor.getString(2);
|
||||
item.times_contacted = 0;
|
||||
item.times_contacted = (cursor.getInt(3) == 0 ? 0 : Integer.MAX_VALUE);
|
||||
item.last_contacted = 0L;
|
||||
EntityContact existing = map.get(item.email);
|
||||
if (existing == null ||
|
||||
|
|
Loading…
Reference in a new issue