diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-09-16 10:33:14 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-09-16 10:33:14 -0700 |
commit | a08edbf859fbbbc4d2686a26fb182d5332bb65dd (patch) | |
tree | 0a184f5ade9b9c965240ff9265e98e55365ca372 /src/github/daneren2005 | |
parent | 0f6aff95a6c7ce5a3a9e3f23c6148844480e1564 (diff) | |
download | dsub-a08edbf859fbbbc4d2686a26fb182d5332bb65dd.tar.gz dsub-a08edbf859fbbbc4d2686a26fb182d5332bb65dd.tar.bz2 dsub-a08edbf859fbbbc4d2686a26fb182d5332bb65dd.zip |
Don't start playing on prev/next when paused
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/DownloadService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java index 7ff1d5eb..33ec85c6 100644 --- a/src/github/daneren2005/dsub/service/DownloadService.java +++ b/src/github/daneren2005/dsub/service/DownloadService.java @@ -880,13 +880,13 @@ public class DownloadService extends Service { // Restart song if played more than five seconds. if (getPlayerPosition() > 5000 || (index == 0 && getRepeatMode() != RepeatMode.ALL)) { - play(index); + seekTo(0); } else { if(index == 0) { index = size(); } - play(index - 1); + play(index - 1, playerState != PAUSED && playerState != STOPPED && playerState != IDLE); } } @@ -912,7 +912,7 @@ public class DownloadService extends Service { nextPlayingIndex++; } if (index != -1 && nextPlayingIndex < size()) { - play(nextPlayingIndex); + play(nextPlayingIndex, playerState != PAUSED && playerState != STOPPED && playerState != IDLE); } } |