aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowner <owner@DeeDee-Laptop>2012-12-31 22:08:09 -0800
committerowner <owner@DeeDee-Laptop>2012-12-31 22:08:09 -0800
commitf634565df8445c5ab4f692f99583cf4b70110a35 (patch)
tree2845046f7e0bae4b4c86188895009abbad26462c
parent1de88b39fb5e5375cdfce4d77dbc5cf71533c4f7 (diff)
downloaddsub-f634565df8445c5ab4f692f99583cf4b70110a35.tar.gz
dsub-f634565df8445c5ab4f692f99583cf4b70110a35.tar.bz2
dsub-f634565df8445c5ab4f692f99583cf4b70110a35.zip
Request audio focus when starting playback
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 7e6a0070..b36b58e3 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -658,6 +658,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
if (jukeboxEnabled) {
jukeboxService.start();
} else {
+ Util.requestAudioFocus(this);
mediaPlayer.start();
}
setPlayerState(STARTED);