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