diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-03-06 18:59:28 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-03-06 18:59:28 -0800 |
commit | 9273ebc65667c3f71ffc7961da5e28d06d6714ae (patch) | |
tree | 1cf2b1409a4ea301aff3267ce2f336465087f1c1 | |
parent | 556f043b68b6b19091fe3057cfd42b13dc961365 (diff) | |
download | dsub-9273ebc65667c3f71ffc7961da5e28d06d6714ae.tar.gz dsub-9273ebc65667c3f71ffc7961da5e28d06d6714ae.tar.bz2 dsub-9273ebc65667c3f71ffc7961da5e28d06d6714ae.zip |
Don't setup next player if it is same as current
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 79094024..194f06ec 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -651,7 +651,7 @@ public class DownloadService extends Service { nextPlayingTask.cancel(); nextPlayingTask = null; } - if(index < size() && index != -1) { + if(index < size() && index != -1 && index != currentPlayingIndex) { nextPlaying = downloadList.get(index); nextPlayingTask = new CheckCompletionTask(nextPlaying); nextPlayingTask.start(); |