diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-01-30 16:45:50 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-01-30 16:45:50 -0800 |
commit | 26e0e1f86fa3dcf3ada1afd38222ea40f26bab12 (patch) | |
tree | a7b3b31f772e8002f6bbcb288e72560c7f3d4a5b /src | |
parent | 1c38860b00a06e73ff36db951d9d7ddbc7a13d78 (diff) | |
download | dsub-26e0e1f86fa3dcf3ada1afd38222ea40f26bab12.tar.gz dsub-26e0e1f86fa3dcf3ada1afd38222ea40f26bab12.tar.bz2 dsub-26e0e1f86fa3dcf3ada1afd38222ea40f26bab12.zip |
Next should use already setup MediaPlayer
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 6 |
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); + } } } |