From 26e0e1f86fa3dcf3ada1afd38222ea40f26bab12 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 30 Jan 2014 16:45:50 -0800 Subject: Next should use already setup MediaPlayer --- src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); + } } } -- cgit v1.2.3