aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-07-07 18:49:37 -0700
committerScott Jackson <daneren2005@gmail.com>2012-07-07 18:49:37 -0700
commitd1efd47f41c09668c1311e50a3dff2d35189606b (patch)
tree30d4dcec85548ca35679faa8e2d08cf4f7eab949 /subsonic-android
parent70fd317933c695a43dd2e6544739e127aeb4571a (diff)
downloaddsub-d1efd47f41c09668c1311e50a3dff2d35189606b.tar.gz
dsub-d1efd47f41c09668c1311e50a3dff2d35189606b.tar.bz2
dsub-d1efd47f41c09668c1311e50a3dff2d35189606b.zip
Don't pause when unplug when in Jukebox mode
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/subphonic/service/DownloadServiceLifecycleSupport.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/subphonic/service/DownloadServiceLifecycleSupport.java b/subsonic-android/src/github/daneren2005/subphonic/service/DownloadServiceLifecycleSupport.java
index 1fdd3add..c58fca6d 100644
--- a/subsonic-android/src/github/daneren2005/subphonic/service/DownloadServiceLifecycleSupport.java
+++ b/subsonic-android/src/github/daneren2005/subphonic/service/DownloadServiceLifecycleSupport.java
@@ -105,7 +105,9 @@ public class DownloadServiceLifecycleSupport {
public void onReceive(Context context, Intent intent) {
Log.i(TAG, "Headset event for: " + intent.getExtras().get("name"));
if (intent.getExtras().getInt("state") == 0) {
- downloadService.pause();
+ if(!downloadService.isJukeboxEnabled()) {
+ downloadService.pause();
+ }
}
}
};