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

Commit 73ab2368 authored by Dave Santoro's avatar Dave Santoro
Browse files

Fix custom list filter for groups.

Bug 5116514

Change-Id: I1faf3321d6d571508ce7bcb2cd22fba0ad19af8d
parent c0ffb0f0
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;