aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-05-16 16:40:01 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-05-16 16:40:01 -0700
commit45637db7441f1c70723efecf1d49c72aa6b3472a (patch)
tree0be6729ded5e1f469885c10684cb02815255db98
parent5ef2010bfda6b5e471e506651a022f17f761b590 (diff)
downloaddsub-45637db7441f1c70723efecf1d49c72aa6b3472a.tar.gz
dsub-45637db7441f1c70723efecf1d49c72aa6b3472a.tar.bz2
dsub-45637db7441f1c70723efecf1d49c72aa6b3472a.zip
Only broadcast paused in PREPARED state for Samsung devices
-rw-r--r--src/github/daneren2005/dsub/util/Util.java10
1 files changed, 9 insertions, 1 deletions
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);