diff options
author | ByteHamster <info@bytehamster.com> | 2022-01-04 16:39:00 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-01-04 16:39:00 +0100 |
commit | a445049b66d518f96b70617fac314666c1e3c1ed (patch) | |
tree | bf37938e2d283cf3b5462ac69ad24d79b0819b5e /core | |
parent | 814cd0f88ddee858c89f692a4fd6d03627012919 (diff) | |
download | AntennaPod-a445049b66d518f96b70617fac314666c1e3c1ed.zip |
Fix crash when share dialog tries to serialize FeedMedia
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackServiceStarter.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackServiceStarter.java b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackServiceStarter.java index 061a976dc..3efded9ed 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackServiceStarter.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/playback/PlaybackServiceStarter.java @@ -2,6 +2,7 @@ package de.danoeh.antennapod.core.util.playback; import android.content.Context; import android.content.Intent; +import android.os.Parcelable; import androidx.core.content.ContextCompat; import de.danoeh.antennapod.core.preferences.PlaybackPreferences; @@ -66,7 +67,7 @@ public class PlaybackServiceStarter { public Intent getIntent() { Intent launchIntent = new Intent(context, PlaybackService.class); - launchIntent.putExtra(PlaybackService.EXTRA_PLAYABLE, media); + launchIntent.putExtra(PlaybackService.EXTRA_PLAYABLE, (Parcelable) media); launchIntent.putExtra(PlaybackService.EXTRA_START_WHEN_PREPARED, startWhenPrepared); launchIntent.putExtra(PlaybackService.EXTRA_SHOULD_STREAM, shouldStream); launchIntent.putExtra(PlaybackService.EXTRA_PREPARE_IMMEDIATELY, prepareImmediately); |