Merge "Make sure reconcileAccounts in AccountService is synchronous"

This commit is contained in:
Marc Blank 2011-08-19 15:40:00 -07:00 committed by Android (Google) Code Review
commit 828bf89535

View File

@ -64,6 +64,7 @@ public class AccountServiceProxy extends ServiceProxy implements IAccountService
}, "notifyLoginSucceeded");
}
// The following call is synchronous, and should not be made from the UI thread
@Override
public void reconcileAccounts(final String protocol, final String accountManagerType) {
setTask(new ProxyTask() {
@ -72,6 +73,7 @@ public class AccountServiceProxy extends ServiceProxy implements IAccountService
mService.reconcileAccounts(protocol, accountManagerType);
}
}, "reconcileAccounts");
waitForCompletion();
}
// The following call is synchronous, and should not be made from the UI thread