diff options
author | Kamal Negi <kamaln@codeaurora.org> | 2016-03-19 15:10:31 +0530 |
---|---|---|
committer | Arne Coucheron <arco68@gmail.com> | 2016-07-14 06:34:30 +0200 |
commit | acf84fb67db816488c267e3d0b42660b40baec32 (patch) | |
tree | 2eb2bfac820ad8ef22af41ebc83e29ec3767a954 /fmapp2/src/com/caf/fmradio/FMRadioService.java | |
parent | 49630ffcfbae7f7864fd3dba92ccac1951429cac (diff) | |
download | android_hardware_qcom_fm-stable/cm-13.0-ZNH5Y.tar.gz android_hardware_qcom_fm-stable/cm-13.0-ZNH5Y.tar.bz2 android_hardware_qcom_fm-stable/cm-13.0-ZNH5Y.zip |
fm: Remove unwanted media button key event listenersstable/cm-13.0-ZNH5Y
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
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadioService.java')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadioService.java | 2 |
1 files changed, 1 insertions, 1 deletions
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" |