aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-04-12 08:16:42 -0700
committerScott Jackson <daneren2005@gmail.com>2013-04-12 08:16:42 -0700
commitab41edff1becba222e641e215835bd81c50fcaf4 (patch)
tree0c78628a9f5992a9f1bdaac04302662d1e994074
parentea898871a61da79ca9d79c5a1846229fe6a4559b (diff)
downloaddsub-ab41edff1becba222e641e215835bd81c50fcaf4.tar.gz
dsub-ab41edff1becba222e641e215835bd81c50fcaf4.tar.bz2
dsub-ab41edff1becba222e641e215835bd81c50fcaf4.zip
Chain media players if in paused state as well
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 4585c52e..154a3d7e 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -745,7 +745,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
jukeboxService.start();
} else {
mediaPlayer.start();
- }
+ }
setPlayerState(STARTED);
} catch (Exception x) {
handleError(x);
@@ -1061,7 +1061,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
public void onPrepared(MediaPlayer mp) {
try {
setNextPlayerState(PREPARED);
- if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN && playerState == PlayerState.STARTED) {
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN && (playerState == PlayerState.STARTED || playerState == PlayerState.PAUSED)) {
mediaPlayer.setNextMediaPlayer(nextMediaPlayer);
nextSetup = true;
}