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

Commit e21ea678 authored by Marcus Hagerott's avatar Marcus Hagerott
Browse files

Hide null account in customize screen

Test: manually verified that there was no device account shown
on the customize screen.

BUG=62689233

Change-Id: I1786f6505d29878b80930581ca0883121900da74
parent 99b4ba09
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -163,6 +163,12 @@ public class CustomContactListFilterActivity extends Activity implements
            // ContactsContract.Settings
            for (AccountInfo info : sourceAccounts) {
                final AccountWithDataSet account = info.getAccount();
                // Don't include the null account because it doesn't support writing to
                // ContactsContract.Settings
                if (account.isNullAccount()) {
                    continue;
                }

                final AccountDisplay accountDisplay = new AccountDisplay(resolver, info);

                final Uri.Builder groupsUri = Groups.CONTENT_URI.buildUpon()