Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3d8750b authored by Dave Santoro's avatar Dave Santoro Committed by Android (Google) Code Review
Browse files

Merge "Fix custom list filter for groups."

parents de6d3386 73ab2368
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -128,12 +128,14 @@ public class CustomContactListFilterActivity extends ContactsActivity
                AccountDisplay accountDisplay =
                        new AccountDisplay(resolver, account.name, account.type, account.dataSet);

                final Uri groupsUri = Groups.CONTENT_URI.buildUpon()
                final Uri.Builder groupsUri = Groups.CONTENT_URI.buildUpon()
                        .appendQueryParameter(Groups.ACCOUNT_NAME, account.name)
                        .appendQueryParameter(Groups.ACCOUNT_TYPE, account.type)
                        .appendQueryParameter(Groups.DATA_SET, account.dataSet).build();
                        .appendQueryParameter(Groups.ACCOUNT_TYPE, account.type);
                if (account.dataSet != null) {
                    groupsUri.appendQueryParameter(Groups.DATA_SET, account.dataSet).build();
                }
                EntityIterator iterator = ContactsContract.Groups.newEntityIterator(resolver.query(
                        groupsUri, null, null, null, null));
                        groupsUri.build(), null, null, null, null));
                try {
                    boolean hasGroups = false;