From acf84fb67db816488c267e3d0b42660b40baec32 Mon Sep 17 00:00:00 2001 From: Kamal Negi Date: Sat, 19 Mar 2016 15:10:31 +0530 Subject: fm: Remove unwanted media button key event listeners When FM is turned off, fm app is still listening to media key events (play, pause etc.) which results in other media consuming apps to be starved of Media Key events. Remove unwanted media button listeners so that other media resources can receive key events. Change-Id: Ib43f8b89e07928326c2af771a7465981e1690470 --- fmapp2/src/com/caf/fmradio/FMRadioService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fmapp2/src/com/caf/fmradio/FMRadioService.java') diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index 889e69b..887c228 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -816,7 +816,7 @@ public class FMRadioService extends Service if (!isFmOn()) return; /* Disable FM and let the UI know */ - fmOff(); + fmOff(FM_OFF_FROM_ANTENNA); try { /* Notify the UI/Activity, only if the service is "bound" -- cgit v1.2.3