aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
index 3eab2855..96c97393 100644
--- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
+++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java
@@ -743,7 +743,7 @@ public class DownloadService extends Service {
int position = getPlayerPosition();
int duration = getPlayerDuration();
boolean cutoff = isPastCutoff(position, duration, true);
- if(currentPlaying != null && currentPlaying.getSong() instanceof PodcastEpisode) {
+ if(currentPlaying != null && currentPlaying.getSong() instanceof PodcastEpisode && !currentPlaying.isSaved()) {
if(cutoff) {
currentPlaying.delete();
}
@@ -1178,7 +1178,7 @@ public class DownloadService extends Service {
} else {
cutoff = isPastCutoff(position, duration);
}
- if(currentPlaying != null && currentPlaying.getSong() instanceof PodcastEpisode) {
+ if(currentPlaying != null && currentPlaying.getSong() instanceof PodcastEpisode && !currentPlaying.isSaved()) {
if(cutoff) {
toDelete.add(currentPlaying);
}