diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/util/Util.java | 10 |
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); |