am 69757c66: Merge "Synchronize getAccountById on sAccountList" into froyo

Merge commit '69757c6670b8b6fbeea6da1d9690002e0f7b9293' into froyo-plus-aosp

* commit '69757c6670b8b6fbeea6da1d9690002e0f7b9293':
  Synchronize getAccountById on sAccountList
This commit is contained in:
Andy Stadler 2010-04-10 17:21:57 -07:00 committed by Android Git Automerger
commit 6647399802

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() {