aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authorowner <owner@DeeDee-Laptop>2012-12-31 20:14:28 -0800
committerowner <owner@DeeDee-Laptop>2012-12-31 20:14:28 -0800
commit253fffd035442574928dedb3b898ec6d69c11e8a (patch)
treec2de37babda9c52b21367b7ac364d23e10dab033 /subsonic-android/src/github/daneren2005
parentb413f000593d440bbf456afa5eef3ffb82d203b8 (diff)
downloaddsub-253fffd035442574928dedb3b898ec6d69c11e8a.tar.gz
dsub-253fffd035442574928dedb3b898ec6d69c11e8a.tar.bz2
dsub-253fffd035442574928dedb3b898ec6d69c11e8a.zip
Pause when other players try to start playing
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/Util.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/Util.java b/subsonic-android/src/github/daneren2005/dsub/util/Util.java
index 762a3db7..fd6a9b6d 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/Util.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/Util.java
@@ -806,6 +806,8 @@ public final class Util {
lowerFocus = false;
downloadService.setVolume(1.0f);
}
+ } else if(focusChange == AudioManager.AUDIOFOCUS_LOSS) {
+ downloadService.pause();
}
}
}, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);