summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2022-02-20 15:27:21 +0100
committerGitHub <noreply@github.com>2022-02-20 15:27:21 +0100
commit4ba0e98b440d881277631478143330732b85e514 (patch)
tree7bd2a350dae9c5cbd53df99948c0a234870b606a
parent58b675b38e56489353c93b052c995b792bfb72e6 (diff)
parent5d82e9c84f1884537e5c7978fb9ce69897de7b55 (diff)
downloadantennapod-4ba0e98b440d881277631478143330732b85e514.zip
Merge pull request #5736 from ByteHamster/skip-reset-position
Reset position when skipping and 'smart mark as played'
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
index e46e8d72c..d6d11bc8a 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java
@@ -1091,7 +1091,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|| autoSkipped
|| (skipped && !UserPreferences.shouldSkipKeepEpisode())) {
// only mark the item as played if we're not keeping it anyways
- DBWriter.markItemPlayed(item, FeedItem.PLAYED, ended);
+ DBWriter.markItemPlayed(item, FeedItem.PLAYED, ended || (skipped && smartMarkAsPlayed));
// don't know if it actually matters to not autodownload when smart mark as played is triggered
DBWriter.removeQueueItem(PlaybackService.this, ended, item);
// Delete episode if enabled