aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-30 16:45:50 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-30 16:45:50 -0800
commit26e0e1f86fa3dcf3ada1afd38222ea40f26bab12 (patch)
treea7b3b31f772e8002f6bbcb288e72560c7f3d4a5b
parent1c38860b00a06e73ff36db951d9d7ddbc7a13d78 (diff)
downloaddsub-26e0e1f86fa3dcf3ada1afd38222ea40f26bab12.tar.gz
dsub-26e0e1f86fa3dcf3ada1afd38222ea40f26bab12.tar.bz2
dsub-26e0e1f86fa3dcf3ada1afd38222ea40f26bab12.zip
Next should use already setup MediaPlayer
-rw-r--r--src/github/daneren2005/dsub/service/DownloadServiceImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index cba71f8c..a8bb6cd4 100644
--- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -846,7 +846,11 @@ public class DownloadServiceImpl extends Service implements DownloadService {
nextPlayingIndex++;
}
if (index != -1 && nextPlayingIndex < size()) {
- play(nextPlayingIndex);
+ if(nextPlaying != null && downloadList.get(nextPlayingIndex) == nextPlaying && nextPlayerState == PlayerState.PREPARED && remoteState == RemoteControlState.LOCAL) {
+ playNext(true);
+ } else {
+ play(nextPlayingIndex);
+ }
}
}