Show non deleted contact groups with at least one contact

pull/162/head
M66B 5 years ago
parent eaa327315a
commit d03969d23f

@ -3377,12 +3377,15 @@ public class FragmentCompose extends FragmentBase {
final Spinner spTarget = dview.findViewById(R.id.spTarget);
Cursor groups = getContext().getContentResolver().query(
ContactsContract.Groups.CONTENT_URI,
ContactsContract.Groups.CONTENT_SUMMARY_URI,
new String[]{
ContactsContract.Groups._ID,
ContactsContract.Groups.TITLE
ContactsContract.Groups.TITLE,
ContactsContract.Groups.SUMMARY_COUNT
},
ContactsContract.Groups.GROUP_VISIBLE + " = 1", null,
ContactsContract.Groups.DELETED + " = 0" +
" AND " + ContactsContract.Groups.SUMMARY_COUNT + " > 0",
null,
ContactsContract.Groups.TITLE
);

Loading…
Cancel
Save