Prevent IllegalArgumentException

master
M66B 2 months ago
parent 63101a45ee
commit 3b9c303274

@ -92,7 +92,7 @@ public class FragmentDialogContactGroup extends FragmentDialogBase {
if (permission)
try {
ContentResolver resolver = context.getContentResolver();
contacts = resolver.query(
Cursor cursor = resolver.query(
ContactsContract.Groups.CONTENT_SUMMARY_URI,
projection,
// ContactsContract.Groups.GROUP_VISIBLE + " = 1" + " AND " +
@ -101,6 +101,8 @@ public class FragmentDialogContactGroup extends FragmentDialogBase {
null,
ContactsContract.Groups.TITLE
);
if (cursor != null)
contacts = cursor;
} catch (SecurityException ex) {
Log.w(ex);
}

Loading…
Cancel
Save