diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-02-21 16:00:05 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-02-21 16:00:05 -0800 |
commit | 52e389588f7c7403d2619db18631a959b877724a (patch) | |
tree | f9583ae5ecdc94b2d69fe3e01da664de3afea5b5 /subsonic-android/src | |
parent | 8bd71e7179418925150ab9afc931868f25e20b80 (diff) | |
download | dsub-52e389588f7c7403d2619db18631a959b877724a.tar.gz dsub-52e389588f7c7403d2619db18631a959b877724a.tar.bz2 dsub-52e389588f7c7403d2619db18631a959b877724a.zip |
Don't allow media button events to propogate out
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java | 6 |
1 files changed, 6 insertions, 0 deletions
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. + } } } |