mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-26 02:43:39 +02:00
Predictable sort order for contact lookup by email address
This commit is contained in:
@@ -312,7 +312,7 @@ public class ContactInfo {
|
||||
ContactsContract.Contacts.LOOKUP_KEY,
|
||||
ContactsContract.Contacts.DISPLAY_NAME
|
||||
},
|
||||
null, null, null)) {
|
||||
null, null, ContactsContract.Contacts.DISPLAY_NAME)) {
|
||||
|
||||
if (cursor != null && cursor.moveToNext()) {
|
||||
int colContactId = cursor.getColumnIndex(ContactsContract.CommonDataKinds.Photo.CONTACT_ID);
|
||||
@@ -1155,7 +1155,7 @@ public class ContactInfo {
|
||||
ContactsContract.Contacts.DISPLAY_NAME
|
||||
},
|
||||
ContactsContract.CommonDataKinds.Email.ADDRESS + " <> ''",
|
||||
null, null)) {
|
||||
null, ContactsContract.Contacts.DISPLAY_NAME)) {
|
||||
while (cursor != null && cursor.moveToNext()) {
|
||||
long contactId = cursor.getLong(0);
|
||||
String lookupKey = cursor.getString(1);
|
||||
|
||||
Reference in New Issue
Block a user