Major refactor of ConversationCursor
* ConversationCursors are now associated with a particular loader;
there are no static methods or static state fields
* ConversationCursorLoader maintains a list of current loaders
(for tracking/debugging)
* AbstractActivityController acts as a router of conversation
changes to/from fragments (currently message view -> conversation
list)
* Comment out some ConversationCursor tests for now
Change-Id: I9b8425a19c77501796b6681142e1bc0ad20b3693
diff --git a/src/com/android/mail/ui/ConversationListFragment.java b/src/com/android/mail/ui/ConversationListFragment.java
index c7e1a8b..10c1bbe 100644
--- a/src/com/android/mail/ui/ConversationListFragment.java
+++ b/src/com/android/mail/ui/ConversationListFragment.java
@@ -492,12 +492,13 @@
@Override
public void onSwipeComplete(Collection<Conversation> conversations) {
Context context = getActivity().getApplicationContext();
+ ConversationCursor cc = getConversationListCursor();
switch (mSwipeAction) {
case R.id.archive:
- Conversation.archive(context, conversations);
+ cc.archive(context, conversations);
break;
case R.id.delete:
- Conversation.delete(context, conversations);
+ cc.delete(context, conversations);
break;
}
mListAdapter.notifyDataSetChanged();