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

Commit b70a2225 authored by Fyodor Kupolov's avatar Fyodor Kupolov Committed by android-build-merger
Browse files

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

am: 6a841cb8

Change-Id: Ie1d66b8e3a6dd11ebdea7b67756b9bf12581d5b2
parents 08fa7112 6a841cb8
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) {