Use account id instead of accout objects in EasOperation.
Change-Id: Id621819a00fea8b44beff87d7dc6999b9e46e052
diff --git a/src/com/android/exchange/service/EasService.java b/src/com/android/exchange/service/EasService.java
index 3443524..5bab199 100644
--- a/src/com/android/exchange/service/EasService.java
+++ b/src/com/android/exchange/service/EasService.java
@@ -315,8 +315,8 @@
}
public int doOperation(final EasOperation operation, final String loggingName) {
- final Account account = operation.getAccount();
- final long accountId = account.getId();
+ final long accountId = operation.getAccountId();
+ final Account account = Account.restoreAccountWithId(this, accountId);
LogUtils.d(TAG, "%s: %d", loggingName, accountId);
mSynchronizer.syncStart(accountId);
// TODO: Do we need a wakelock here? For RPC coming from sync adapters, no -- the SA