Make sure reconcileAccounts in AccountService is synchronous

* This is important so that callers can know that reconciliation
  is complete.

Bug: 5189766
Change-Id: I4fbbaa6506042f975e7ad4e828fe8399c4d4a366
This commit is contained in:
Marc Blank 2011-08-19 15:27:00 -07:00
parent f13fee5d78
commit 8b755f600c
1 changed files with 2 additions and 0 deletions

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