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

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

Merge "Do not hold locks when calling getAccounts" into oc-dev

parents 217ecd07 16bedd43
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
@@ -1597,11 +1597,7 @@ public class AccountManagerService
                @Override
                public void run() throws RemoteException {
                    // Confirm that the owner's account still exists before this step.
                    UserAccounts owner = getUserAccounts(parentUserId);
                    synchronized (owner.dbLock) {
                        synchronized (owner.cacheLock) {
                            for (Account acc : getAccounts(parentUserId,
                                    mContext.getOpPackageName())) {
                    for (Account acc : getAccounts(parentUserId, mContext.getOpPackageName())) {
                        if (acc.equals(account)) {
                            mAuthenticator.addAccountFromCredentials(
                                    this, account, accountCredentials);
@@ -1609,8 +1605,6 @@ public class AccountManagerService
                        }
                    }
                }
                    }
                }

                @Override
                public void onResult(Bundle result) {