aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-05-13 15:58:36 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-05-13 15:58:36 -0700
commitfc7b05e4af74929a0f42aab57300bfb8f87e1598 (patch)
tree8e0eb8c497564f4cec76a55e9770b15e19ef2d05 /src/github/daneren2005
parentc5cb9c9953e2e4e2b7e23841b5e16afe8010d82e (diff)
downloaddsub-fc7b05e4af74929a0f42aab57300bfb8f87e1598.tar.gz
dsub-fc7b05e4af74929a0f42aab57300bfb8f87e1598.tar.bz2
dsub-fc7b05e4af74929a0f42aab57300bfb8f87e1598.zip
Only broadcast paused in PREPARE state for Samsung
Samsung devices require that a song be in the PAUSED state for the Bluetooth metadata to be updated properly. It seems to be causing issues with other devices (ie: LG G2): http://forum.subsonic.org/forum/viewtopic.php?f=16&t=14338
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/service/DownloadService.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/DownloadService.java b/src/github/daneren2005/dsub/service/DownloadService.java
index 36c33192..8ed9f578 100644
--- a/src/github/daneren2005/dsub/service/DownloadService.java
+++ b/src/github/daneren2005/dsub/service/DownloadService.java
@@ -772,8 +772,12 @@ public class DownloadService extends Service {
}
}
private synchronized void playNext(boolean start) {
+ // Only send a quick pause event for samsung devices, causes issues with others
+ if(Build.MANUFACTURER.toLowerCase().indexOf("samsung") != -1) {
+ Util.broadcastPlaybackStatusChange(this, currentPlaying.getSong(), PlayerState.PREPARED);
+ }
+
// Swap the media players since nextMediaPlayer is ready to play
- Util.broadcastPlaybackStatusChange(this, currentPlaying.getSong(), PlayerState.PREPARED);
if(start) {
nextMediaPlayer.start();
} else if(!nextMediaPlayer.isPlaying()) {