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

Commit 1827f12b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't request account access for apps if it is explictly made not...

Merge "Don't request account access for apps if it is explictly made not visible to them." into oc-dev
parents 775699dc 7b3ea13b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -5922,6 +5922,13 @@ public class AccountManagerService
                return;
            }

            int visibility =
                resolveAccountVisibility(account, packageName, getUserAccounts(userId));
            if (visibility == AccountManager.VISIBILITY_NOT_VISIBLE) {
                Slog.w(TAG, "requestAccountAccess: account is hidden");
                return;
            }

            if (AccountManagerService.this.hasAccountAccess(account, packageName,
                    new UserHandle(userId))) {
                Bundle result = new Bundle();