From 45637db7441f1c70723efecf1d49c72aa6b3472a Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Fri, 16 May 2014 16:40:01 -0700 Subject: Only broadcast paused in PREPARED state for Samsung devices --- src/github/daneren2005/dsub/util/Util.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/github/daneren2005') diff --git a/src/github/daneren2005/dsub/util/Util.java b/src/github/daneren2005/dsub/util/Util.java index 10b0a429..413e7cfc 100644 --- a/src/github/daneren2005/dsub/util/Util.java +++ b/src/github/daneren2005/dsub/util/Util.java @@ -1317,10 +1317,18 @@ public final class Util { intent.putExtra("state", "stop"); avrcpIntent.putExtra("playing", false); break; - case PAUSED: case PREPARED: + case PAUSED: intent.putExtra("state", "pause"); avrcpIntent.putExtra("playing", false); break; + case PREPARED: + // Only send quick pause event for samsung devices, causes issues for others + if(Build.MANUFACTURER.toLowerCase().indexOf("samsung") != -1) { + avrcpIntent.putExtra("playing", false); + } else { + return; // Don't broadcast anything + } + break; case COMPLETED: intent.putExtra("state", "complete"); avrcpIntent.putExtra("playing", false); -- cgit v1.2.3