Merge "Use UserAccounts handed into accountExistsCacheLocked" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb3771cd14
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user