summaryrefslogtreecommitdiffstats
path: root/provider_src
diff options
context:
space:
mode:
authorMartin Hibdon <mhibdon@google.com>2014-09-26 15:42:59 -0700
committerMartin Hibdon <mhibdon@google.com>2014-09-26 16:02:22 -0700
commit3c2f782c357807befa9b9416ccdf0b15d5a316ab (patch)
tree9051fdff2f57a8aea66e245152a54c56b9ec3c45 /provider_src
parentd10ae46e607570d0c860438d21f2d8f33a7cbf72 (diff)
downloadandroid_packages_apps_Email-3c2f782c357807befa9b9416ccdf0b15d5a316ab.tar.gz
android_packages_apps_Email-3c2f782c357807befa9b9416ccdf0b15d5a316ab.tar.bz2
android_packages_apps_Email-3c2f782c357807befa9b9416ccdf0b15d5a316ab.zip
When we migrate Exchange folders, set the sync status to INITIAL_SYNC_NEEDED
b/17443087 When we migrate exchange accounts, we copy mailboxes over to the new account (in order to preserve sync frequency and window). The problem with this is, you may have many accounts/mailboxes. After starting the app, it may take quite a long time before all mailboxes are synced. If the user visits some mailbox near the bottom, they'll see a misleading "folder is empty" view. Now, when migrating, we'll set the uisyncstatus to INITIAL_SYNC_NEEDED. Here I needed to add INITAL_SYNC_NEEDED to the list of states that EmailConversationCursor will consider incompletely loaded. Change-Id: Idef13adf9d691c03665830a2f926b1806d7591da
Diffstat (limited to 'provider_src')
-rw-r--r--provider_src/com/android/email/provider/EmailConversationCursor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/provider_src/com/android/email/provider/EmailConversationCursor.java b/provider_src/com/android/email/provider/EmailConversationCursor.java
index 4a49caa9d..f6a17e37f 100644
--- a/provider_src/com/android/email/provider/EmailConversationCursor.java
+++ b/provider_src/com/android/email/provider/EmailConversationCursor.java
@@ -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) {