Merge "Send sync start/finish callbacks in pairs"

This commit is contained in:
Marc Blank 2010-11-03 16:01:10 -07:00 committed by Android (Google) Code Review
commit 5ade775c8f

View File

@ -2283,12 +2283,15 @@ public class EasSyncService extends AbstractSyncService {
public void run() {
if (!setupService()) return;
if (mSyncReason == ExchangeService.SYNC_SERVICE_START_SYNC ||
mSyncReason == ExchangeService.SYNC_SERVICE_PART_REQUEST) {
try {
ExchangeService.callback().syncMailboxStatus(mMailboxId, EmailServiceStatus.IN_PROGRESS,
0);
ExchangeService.callback().syncMailboxStatus(mMailboxId,
EmailServiceStatus.IN_PROGRESS, 0);
} catch (RemoteException e1) {
// Don't care if this fails
}
}
// Whether or not we're the account mailbox
try {