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 /ui/app-start-intent | |
parent | 484b6d093245ad08bd27e797c9d0082eabfcffc4 (diff) | |
download | AntennaPod-687ed5f2ffe9536f7451b00468c75a2201f2d04e.zip |
Open podcast from statistics (#5898)
Diffstat (limited to 'ui/app-start-intent')
-rw-r--r-- | ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/MainActivityStarter.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/MainActivityStarter.java b/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/MainActivityStarter.java index 88c0378c1..f91bb9244 100644 --- a/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/MainActivityStarter.java +++ b/ui/app-start-intent/src/main/java/de/danoeh/antennapod/ui/appstartintent/MainActivityStarter.java @@ -12,6 +12,8 @@ import android.os.Build; public class MainActivityStarter { public static final String INTENT = "de.danoeh.antennapod.intents.MAIN_ACTIVITY"; public static final String EXTRA_OPEN_PLAYER = "open_player"; + public static final String EXTRA_FEED_ID = "fragment_feed_id"; + public static final String EXTRA_ADD_TO_BACK_STACK = "add_to_back_stack"; private final Intent intent; private final Context context; @@ -39,4 +41,14 @@ public class MainActivityStarter { intent.putExtra(EXTRA_OPEN_PLAYER, true); return this; } + + public MainActivityStarter withOpenFeed(long feedId) { + intent.putExtra(EXTRA_FEED_ID, feedId); + return this; + } + + public MainActivityStarter withAddToBackStack() { + intent.putExtra(EXTRA_ADD_TO_BACK_STACK, true); + return this; + } } |