Merge "Synchronize getAccountById on sAccountList" into froyo

This commit is contained in:
Andy Stadler 2010-04-10 17:17:56 -07:00 committed by Android (Google) Code Review
commit 69757c6670

View File

@ -807,7 +807,9 @@ public class SyncManager extends Service implements Runnable {
}
static public Account getAccountById(long accountId) {
return sAccountList.getById(accountId);
synchronized (sAccountList) {
return sAccountList.getById(accountId);
}
}
static public String getEasAccountSelector() {