From 52e389588f7c7403d2619db18631a959b877724a Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Thu, 21 Feb 2013 16:00:05 -0800 Subject: Don't allow media button events to propogate out --- .../github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'subsonic-android/src') diff --git a/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java b/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java index cdbe8c4d..9796971f 100644 --- a/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java +++ b/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java @@ -40,5 +40,11 @@ public class MediaButtonIntentReceiver extends BroadcastReceiver { Intent serviceIntent = new Intent(context, DownloadServiceImpl.class); serviceIntent.putExtra(Intent.EXTRA_KEY_EVENT, event); context.startService(serviceIntent); + + try { + abortBroadcast(); + } catch (Exception x) { + // Ignored. + } } } -- cgit v1.2.3