summaryrefslogtreecommitdiff
path: root/src/de/podfetcher/fragment/FeedlistFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/podfetcher/fragment/FeedlistFragment.java')
-rw-r--r--src/de/podfetcher/fragment/FeedlistFragment.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/de/podfetcher/fragment/FeedlistFragment.java b/src/de/podfetcher/fragment/FeedlistFragment.java
index 1dc925164..aecaa7165 100644
--- a/src/de/podfetcher/fragment/FeedlistFragment.java
+++ b/src/de/podfetcher/fragment/FeedlistFragment.java
@@ -111,6 +111,9 @@ public class FeedlistFragment extends SherlockListFragment {
public void onPause() {
super.onPause();
pActivity.unregisterReceiver(contentUpdate);
+ if (mActionMode != null) {
+ mActionMode.finish();
+ }
}
private BroadcastReceiver contentUpdate = new BroadcastReceiver() {
@@ -158,6 +161,12 @@ public class FeedlistFragment extends SherlockListFragment {
};
remover.execute(selectedFeed);
break;
+ case R.id.mark_all_read_item:
+ for (FeedItem feeditem : selectedFeed.getItems()) {
+ manager.markItemRead(getSherlockActivity(), feeditem, true);
+ }
+ fla.notifyDataSetChanged();
+ break;
}
mode.finish();
return true;