mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 22:23:39 +00:00
parent
f22c9af136
commit
f4104f696e
@ -224,9 +224,9 @@ public class ContactsDatabase {
|
|||||||
} else {
|
} else {
|
||||||
cursor = context.getContentResolver().query(ContactsContract.Data.CONTENT_URI,
|
cursor = context.getContentResolver().query(ContactsContract.Data.CONTENT_URI,
|
||||||
projection,
|
projection,
|
||||||
ContactsContract.Data.MIMETYPE + " = ? AND " + ContactsContract.Contacts.DISPLAY_NAME + " LIKE ?",
|
ContactsContract.Data.MIMETYPE + " = ? AND (" + ContactsContract.Contacts.DISPLAY_NAME + " LIKE ? OR " + ContactsContract.Data.DATA1 + " LIKE ?)",
|
||||||
new String[] {"vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.contact",
|
new String[] {"vnd.android.cursor.item/vnd.org.thoughtcrime.securesms.contact",
|
||||||
"%" + filter + "%"},
|
"%" + filter + "%", "%" + filter + "%"},
|
||||||
sort);
|
sort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user