aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-01-14 20:30:57 -0800
committerScott Jackson <daneren2005@gmail.com>2013-01-14 20:30:57 -0800
commit230d13bd8fe3aa5be5752c1fa2b26313ff974ba4 (patch)
treea1b26ce66293f52e6bddb82f12f99368e5015697
parentdc994b6fb321d4fa51ca82aa350e3ffc47d483c0 (diff)
downloaddsub-230d13bd8fe3aa5be5752c1fa2b26313ff974ba4.tar.gz
dsub-230d13bd8fe3aa5be5752c1fa2b26313ff974ba4.tar.bz2
dsub-230d13bd8fe3aa5be5752c1fa2b26313ff974ba4.zip
Abandon focus when loosing focus anyways
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/Util.java1
1 files changed, 1 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 bd10f1b7..1733bf62 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/Util.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/Util.java
@@ -832,6 +832,7 @@ public final class Util {
} else if(focusChange == AudioManager.AUDIOFOCUS_LOSS) {
hasFocus = false;
downloadService.pause();
+ audioManager.abandonAudioFocus(this);
}
}
}, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);