diff options
author | Fenny Fatal <Fenny@Fennyfatal.com> | 2013-07-21 21:59:28 -0600 |
---|---|---|
committer | Fenny Fatal <Fenny@Fennyfatal.com> | 2013-07-21 21:59:28 -0600 |
commit | 9235964fe5267ccbfbf2149b902e7c619fec491b (patch) | |
tree | 66bf8cdf3033dcaa1990c2c65ca182758c82c42d | |
parent | 392b54035b8e6cbd780a7e1b67f9cf4baa3b5302 (diff) | |
download | dsub-9235964fe5267ccbfbf2149b902e7c619fec491b.tar.gz dsub-9235964fe5267ccbfbf2149b902e7c619fec491b.tar.bz2 dsub-9235964fe5267ccbfbf2149b902e7c619fec491b.zip |
Make Media button events less spammy in logcat.
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java b/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java index 9796971f..9ea04474 100644 --- a/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java +++ b/subsonic-android/src/github/daneren2005/dsub/receiver/MediaButtonIntentReceiver.java @@ -40,11 +40,13 @@ public class MediaButtonIntentReceiver extends BroadcastReceiver { Intent serviceIntent = new Intent(context, DownloadServiceImpl.class); serviceIntent.putExtra(Intent.EXTRA_KEY_EVENT, event); context.startService(serviceIntent); - + if (isOrderedBroadcast()) + { try { abortBroadcast(); } catch (Exception x) { // Ignored. } + } } } |