Merge "Use UserAccounts handed into accountExistsCacheLocked" into nyc-dev

This commit is contained in:
Benjamin Franz
2016-02-22 14:07:34 +00:00
committed by Android (Google) Code Review

View File

@@ -1734,7 +1734,7 @@ public class AccountManagerService
private boolean accountExistsCacheLocked(UserAccounts accounts, Account account) { private boolean accountExistsCacheLocked(UserAccounts accounts, Account account) {
if (accounts.accountCache.containsKey(account.type)) { if (accounts.accountCache.containsKey(account.type)) {
for (Account acc : getUserAccountsForCaller().accountCache.get(account.type)) { for (Account acc : accounts.accountCache.get(account.type)) {
if (acc.name.equals(account.name)) { if (acc.name.equals(account.name)) {
return true; return true;
} }