aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 81289f86..08516cfd 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -917,6 +917,9 @@ public class DownloadService extends Service {
}
public synchronized void next() {
+
+ }
+ public synchronized void next(boolean forceCutoff) {
// If only one song, just skip within song
if(size() == 1) {
seekTo(getPlayerPosition() + FAST_FORWARD);
@@ -926,7 +929,12 @@ public class DownloadService extends Service {
// Delete podcast if fully listened to
int position = getPlayerPosition();
int duration = getPlayerDuration();
- boolean cutoff = isPastCutoff(position, duration);
+ boolean cutoff;
+ if(forceCutoff) {
+ cutoff = true;
+ } else {
+ cutoff = isPastCutoff(position, duration);
+ }
if(currentPlaying != null && currentPlaying.getSong() instanceof PodcastEpisode) {
if(cutoff) {
toDelete.add(currentPlaying);