summaryrefslogtreecommitdiff
path: root/core/src/play
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2021-08-05 22:47:00 +0200
committerByteHamster <info@bytehamster.com>2021-08-05 22:47:06 +0200
commitb6fcc8bc5a64549e7d2bef545934a9fa0beb42aa (patch)
treee9d6c94987b7dd3b6047ddb8acde3f41f052084c /core/src/play
parentc3b35f7d8db6223ff13897807ea4140b05bffc67 (diff)
downloadAntennaPod-b6fcc8bc5a64549e7d2bef545934a9fa0beb42aa.zip
When continuous playback is disabled, show next episode in notification
Diffstat (limited to 'core/src/play')
-rw-r--r--core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java b/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java
index 9fd99f236..38b469e8e 100644
--- a/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java
+++ b/core/src/play/java/de/danoeh/antennapod/core/service/playback/RemotePSMP.java
@@ -32,7 +32,6 @@ import de.danoeh.antennapod.core.storage.DBReader;
import de.danoeh.antennapod.model.playback.RemoteMedia;
import de.danoeh.antennapod.model.feed.FeedMedia;
import de.danoeh.antennapod.model.playback.MediaType;
-import de.danoeh.antennapod.core.preferences.UserPreferences;
import de.danoeh.antennapod.core.util.RewindAfterPauseUtils;
import de.danoeh.antennapod.model.playback.Playable;
@@ -367,8 +366,6 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer {
@Override
public void resume() {
try {
- // TODO see comment on prepare()
- // setVolume(UserPreferences.getLeftVolume(), UserPreferences.getRightVolume());
if (playerStatus == PlayerStatus.PREPARED && media.getPosition() > 0) {
int newPosition = RewindAfterPauseUtils.calculatePositionWithRewind(
media.getPosition(),
@@ -405,9 +402,6 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer {
position,
media.getLastPlayedTime());
}
- // TODO We're not supporting user set stream volume yet, as we need to make a UI
- // that doesn't allow changing playback speed or have different values for left/right
- //setVolume(UserPreferences.getLeftVolume(), UserPreferences.getRightVolume());
castMgr.loadMedia(remoteMedia, startWhenPrepared.get(), position);
} catch (TransientNetworkDisconnectionException | NoConnectionException e) {
Log.e(TAG, "Error loading media", e);
@@ -629,7 +623,7 @@ public class RemotePSMP extends PlaybackServiceMediaPlayer {
if (shouldContinue) {
nextMedia = callback.getNextInQueue(currentMedia);
- boolean playNextEpisode = isPlaying && nextMedia != null && UserPreferences.isFollowQueue();
+ boolean playNextEpisode = isPlaying && nextMedia != null;
if (playNextEpisode) {
Log.d(TAG, "Playback of next episode will start immediately.");
} else if (nextMedia == null){