From 3608ba18b68830f9bd65b0970ba85a4a3a1d5d44 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Sat, 23 Jun 2012 15:57:00 +0200 Subject: Improved Feedmenu --- src/de/podfetcher/fragment/FeedlistFragment.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/de/podfetcher') 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; -- cgit v1.2.3