diff options
author | Jared234 <jared@fantaye.de> | 2022-11-30 20:28:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 20:28:14 +0100 |
commit | f91d536ab9429bab54c592210e9bde134c24007a (patch) | |
tree | 1459de66c644a46445304c6e3c466287aa0f682b /core | |
parent | 97ab1725db74c4fd2dec693ec1e97fbb871ef70a (diff) | |
download | AntennaPod-f91d536ab9429bab54c592210e9bde134c24007a.zip |
Fixed bug that causes "skip" button to be unresponsive (#6170)
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java index a7d407fdf..09a55551d 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/LocalPSMP.java @@ -939,20 +939,12 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer { // is an episode in the queue left. // Start playback immediately if continuous playback is enabled nextMedia = callback.getNextInQueue(currentMedia); - boolean playNextEpisode = isPlaying && nextMedia != null; - if (playNextEpisode) { - Log.d(TAG, "Playback of next episode will start immediately."); - } else if (nextMedia == null) { - Log.d(TAG, "No more episodes available to play"); - } else { - Log.d(TAG, "Loading next episode, but not playing automatically."); - } - if (nextMedia != null) { - callback.onPlaybackEnded(nextMedia.getMediaType(), !playNextEpisode); - // setting media to null signals to playMediaObject() that we're taking care of post-playback processing + callback.onPlaybackEnded(nextMedia.getMediaType(), false); + // setting media to null signals to playMediaObject() that + // we're taking care of post-playback processing media = null; - playMediaObject(nextMedia, false, !nextMedia.localFileAvailable(), playNextEpisode, playNextEpisode); + playMediaObject(nextMedia, false, !nextMedia.localFileAvailable(), isPlaying, isPlaying); } } if (shouldContinue || toStoppedState) { |