diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-03 07:50:11 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-03 07:50:11 -0800 |
commit | 6bc16aa6c086e0e71c16909ab0124106d4887157 (patch) | |
tree | cc31933a98fe435a3d75fbafe312adce2245899c | |
parent | b77174762ee353d42eeda155299b5bf9ae600783 (diff) | |
download | dsub-6bc16aa6c086e0e71c16909ab0124106d4887157.tar.gz dsub-6bc16aa6c086e0e71c16909ab0124106d4887157.tar.bz2 dsub-6bc16aa6c086e0e71c16909ab0124106d4887157.zip |
Fix pressing next
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadServiceImpl.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java index e417ce88..cce2796f 100644 --- a/src/github/daneren2005/dsub/service/DownloadServiceImpl.java +++ b/src/github/daneren2005/dsub/service/DownloadServiceImpl.java @@ -854,6 +854,8 @@ public class DownloadServiceImpl extends Service implements DownloadService { } if (index != -1 && nextPlayingIndex < size()) { if(nextPlaying != null && downloadList.get(nextPlayingIndex) == nextPlaying && nextPlayerState == PlayerState.PREPARED && remoteState == RemoteControlState.LOCAL) { + mediaPlayer.setOnCompletionListener(null); + mediaPlayer.reset(); playNext(true); } else { play(nextPlayingIndex); |