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

Merge commit '66473998027f5d93c652653f58dc4ea73e462a55' into kraken

* commit '66473998027f5d93c652653f58dc4ea73e462a55':
  Synchronize getAccountById on sAccountList
This commit is contained in:
Andy Stadler 2010-04-10 17:26:41 -07:00 committed by Android Git Automerger
commit 4929b7fdaa

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