From abd9ffd4e6bafddfc51031a73dd30b255bb9b6aa Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 18 Feb 2014 10:42:37 -0800 Subject: Fix pressing next to close to each other --- src/github/daneren2005/dsub/service/DownloadService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/github/daneren2005') diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 999e825d..d5664d25 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -630,6 +630,7 @@ public class DownloadService extends Service { nextPlayerState = IDLE; return; } + setNextPlayerState(IDLE); int index = getNextPlayingIndex(); @@ -644,7 +645,6 @@ public class DownloadService extends Service { nextPlayingTask.start(); } else { nextPlaying = null; - setNextPlayerState(IDLE); } } @@ -1677,7 +1677,6 @@ public class DownloadService extends Service { private final File partialFile; public CheckCompletionTask(DownloadFile downloadFile) { - setNextPlayerState(PlayerState.IDLE); this.downloadFile = downloadFile; if(downloadFile != null) { partialFile = downloadFile.getPartialFile(); -- cgit v1.2.3