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:
parent
f13fee5d78
commit
8b755f600c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue