diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-04-12 08:16:42 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-04-12 08:16:42 -0700 |
commit | ab41edff1becba222e641e215835bd81c50fcaf4 (patch) | |
tree | 0c78628a9f5992a9f1bdaac04302662d1e994074 | |
parent | ea898871a61da79ca9d79c5a1846229fe6a4559b (diff) | |
download | dsub-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.java | 4 |
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; } |