From a831f01eebc119ce31887d185a60378a62f6826a Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Sun, 12 Jul 2015 21:37:38 +0200 Subject: [PATCH] Open new episodes when removing the currently shown feed via drawer --- .../java/de/danoeh/antennapod/activity/MainActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index c4fc54d73..7eee1558b 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -514,7 +514,7 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity || ((ListView)menuInfo.targetView.getParent()).getId() != R.id.nav_list) { return false; } - int position = menuInfo.position; + final int position = menuInfo.position; Feed feed = navDrawerData.feeds.get(position - navAdapter.getSubscriptionOffset()); switch(item.getItemId()) { case R.id.mark_all_seen_item: @@ -528,6 +528,9 @@ public class MainActivity extends ActionBarActivity implements NavDrawerActivity @Override protected void onPostExecute(Void result) { super.onPostExecute(result); + if(getSelectedNavListIndex() == position) { + loadFragment(NewEpisodesFragment.TAG, null); + } } }; ConfirmationDialog conDialog = new ConfirmationDialog(this,