Fix crash when share dialog tries to serialize FeedMedia
This commit is contained in:
parent
814cd0f88d
commit
a445049b66
|
@ -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);
|
||||
|
|
|
@ -7,13 +7,14 @@ import android.os.Parcelable;
|
|||
import androidx.annotation.Nullable;
|
||||
import de.danoeh.antennapod.model.feed.Chapter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Interface for objects that can be played by the PlaybackService.
|
||||
*/
|
||||
public interface Playable extends Parcelable {
|
||||
public interface Playable extends Parcelable, Serializable {
|
||||
int INVALID_TIME = -1;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue