diff options
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/Util.java | 2 |
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); |