When creating convo list view, sync ConversationCursor if necessary
* Belt and suspenders, in case we ConversationListFragment during an
animation
Change-Id: I66db4dd99383371cb821592945ac92193f7cf0bf
diff --git a/src/com/android/mail/ui/ConversationListFragment.java b/src/com/android/mail/ui/ConversationListFragment.java
index bf97aa2..14c8530 100644
--- a/src/com/android/mail/ui/ConversationListFragment.java
+++ b/src/com/android/mail/ui/ConversationListFragment.java
@@ -286,6 +286,11 @@
// Note - we manually save/restore the listview state.
mListView.setSaveEnabled(false);
+
+ // Belt and suspenders here; make sure we do any necessary sync of the ConversationCursor
+ if (mConversationListCursor != null && mConversationListCursor.isRefreshReady()) {
+ mConversationListCursor.sync();
+ }
return rootView;
}