aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-09-16 10:33:14 -0700
committerScott Jackson <daneren2005@gmail.com>2014-09-16 10:33:14 -0700
commita08edbf859fbbbc4d2686a26fb182d5332bb65dd (patch)
tree0a184f5ade9b9c965240ff9265e98e55365ca372 /src/github/daneren2005
parent0f6aff95a6c7ce5a3a9e3f23c6148844480e1564 (diff)
downloaddsub-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.java6
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);
}
}