aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-02-03 07:50:11 -0800
committerScott Jackson <daneren2005@gmail.com>2014-02-03 07:50:11 -0800
commit6bc16aa6c086e0e71c16909ab0124106d4887157 (patch)
treecc31933a98fe435a3d75fbafe312adce2245899c
parentb77174762ee353d42eeda155299b5bf9ae600783 (diff)
downloaddsub-6bc16aa6c086e0e71c16909ab0124106d4887157.tar.gz
dsub-6bc16aa6c086e0e71c16909ab0124106d4887157.tar.bz2
dsub-6bc16aa6c086e0e71c16909ab0124106d4887157.zip
Fix pressing next
-rw-r--r--src/github/daneren2005/dsub/service/DownloadServiceImpl.java2
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);