diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-03-04 17:35:24 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-03-04 17:35:24 -0800 |
commit | a8740f6b60ccb2cbb0de13ece75eab1338a8b803 (patch) | |
tree | b6be2453be22507c37f0742042ed9c2322cd8b8d /app/src/main/java/github | |
parent | aaa3e53d101c966680b2bb19c093cc69c052e793 (diff) | |
download | dsub-a8740f6b60ccb2cbb0de13ece75eab1338a8b803.tar.gz dsub-a8740f6b60ccb2cbb0de13ece75eab1338a8b803.tar.bz2 dsub-a8740f6b60ccb2cbb0de13ece75eab1338a8b803.zip |
Fix auto deleting permanently cached podcasts
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 4 |
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); } |