am 7ac3a295: am 3381416c: am cacf4c53: am 3c2f782c: When we migrate Exchange folders, set the sync status to INITIAL_SYNC_NEEDED

* commit '7ac3a29506003bdd1229c610a57e04d2c602f51b':
  When we migrate Exchange folders, set the sync status to INITIAL_SYNC_NEEDED
This commit is contained in:
Martin Hibdon 2014-11-02 18:52:51 +00:00 committed by Android Git Automerger
commit d5bded5864
2 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,8 @@ public abstract class EmailContent {
public static final int SYNC_STATUS_USER = UIProvider.SyncStatus.USER_REFRESH;
public static final int SYNC_STATUS_BACKGROUND = UIProvider.SyncStatus.BACKGROUND_SYNC;
public static final int SYNC_STATUS_LIVE = UIProvider.SyncStatus.LIVE_QUERY;
public static final int SYNC_STATUS_INITIAL_SYNC_NEEDED =
UIProvider.SyncStatus.INITIAL_SYNC_NEEDED;
public static final int LAST_SYNC_RESULT_SUCCESS = UIProvider.LastSyncResult.SUCCESS;
public static final int LAST_SYNC_RESULT_AUTH_ERROR = UIProvider.LastSyncResult.AUTH_ERROR;

View File

@ -77,7 +77,8 @@ public class EmailConversationCursor extends CursorWrapper implements
mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_TOTAL_COUNT, mailbox.mTotalCount);
if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_BACKGROUND
|| mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_USER
|| mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_LIVE) {
|| mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_LIVE
|| mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_INITIAL_SYNC_NEEDED) {
mExtras.putInt(UIProvider.CursorExtraKeys.EXTRA_STATUS,
UIProvider.CursorStatus.LOADING);
} else if (mailbox.mUiSyncStatus == EmailContent.SYNC_STATUS_NONE) {