|
|
|
@ -1109,7 +1109,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
boolean contacts = Helper.hasPermission(getContext(), Manifest.permission.READ_CONTACTS);
|
|
|
|
|
if (contacts) {
|
|
|
|
|
Cursor cursor = resolver.query(
|
|
|
|
|
try (Cursor cursor = resolver.query(
|
|
|
|
|
ContactsContract.CommonDataKinds.Email.CONTENT_URI,
|
|
|
|
|
new String[]{
|
|
|
|
|
ContactsContract.Contacts.DISPLAY_NAME,
|
|
|
|
@ -1122,7 +1122,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
" OR LOWER(" + ContactsContract.Contacts.DISPLAY_NAME + ") GLOB ?" +
|
|
|
|
|
" OR " + ContactsContract.CommonDataKinds.Email.DATA + " LIKE ?)",
|
|
|
|
|
new String[]{wildcard, glob, wildcard},
|
|
|
|
|
null);
|
|
|
|
|
null)) {
|
|
|
|
|
|
|
|
|
|
while (cursor != null && cursor.moveToNext()) {
|
|
|
|
|
EntityContact item = new EntityContact();
|
|
|
|
@ -1138,6 +1138,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
map.put(item.email, item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<EntityContact> items = new ArrayList<>();
|
|
|
|
|
if (suggest_sent)
|
|
|
|
|