diff options
author | Adrián Sámson <13379985+adrns@users.noreply.github.com> | 2022-05-24 19:40:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 19:40:40 +0200 |
commit | 687ed5f2ffe9536f7451b00468c75a2201f2d04e (patch) | |
tree | 102f9a1dc06337864a8800be9c5330dece566365 /app | |
parent | 484b6d093245ad08bd27e797c9d0082eabfcffc4 (diff) | |
download | AntennaPod-687ed5f2ffe9536f7451b00468c75a2201f2d04e.zip |
Open podcast from statistics (#5898)
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
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 62c6bbd79..f666951f0 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -85,6 +85,7 @@ public class MainActivity extends CastEnabledActivity { public static final String EXTRA_FEED_ID = "fragment_feed_id"; public static final String EXTRA_REFRESH_ON_START = "refresh_on_start"; public static final String EXTRA_STARTED_FROM_SEARCH = "started_from_search"; + public static final String EXTRA_ADD_TO_BACK_STACK = "add_to_back_stack"; public static final String KEY_GENERATED_VIEW_ID = "generated_view_id"; private @Nullable DrawerLayout drawerLayout; @@ -524,7 +525,9 @@ public class MainActivity extends CastEnabledActivity { if (tag != null) { loadFragment(tag, args); } else if (feedId > 0) { - if (intent.getBooleanExtra(EXTRA_STARTED_FROM_SEARCH, false)) { + boolean startedFromSearch = intent.getBooleanExtra(EXTRA_STARTED_FROM_SEARCH, false); + boolean addToBackStack = intent.getBooleanExtra(EXTRA_ADD_TO_BACK_STACK, false); + if (startedFromSearch || addToBackStack) { loadChildFragment(FeedItemlistFragment.newInstance(feedId)); } else { loadFeedFragmentById(feedId, args); |