diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2013-09-06 11:09:11 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-09-06 11:09:11 -0700 |
commit | a1e94f8dd88eca2389fad4d74a57ff2f094eddcf (patch) | |
tree | f5fe00f4e9b42d34ed414066f2c0cdbed755bcea /fmapp | |
parent | aa8b1849f9feccf689c6cf825e07c65a7cc63348 (diff) | |
parent | c0f384cff75ca545d09d43255f0db19b1230cd68 (diff) | |
download | android_hardware_qcom_fm-a1e94f8dd88eca2389fad4d74a57ff2f094eddcf.tar.gz android_hardware_qcom_fm-a1e94f8dd88eca2389fad4d74a57ff2f094eddcf.tar.bz2 android_hardware_qcom_fm-a1e94f8dd88eca2389fad4d74a57ff2f094eddcf.zip |
Merge "FM: Check the headset status before turning ON FM."
Diffstat (limited to 'fmapp')
-rw-r--r-- | fmapp/src/com/codeaurora/fmradio/FMRadioService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fmapp/src/com/codeaurora/fmradio/FMRadioService.java b/fmapp/src/com/codeaurora/fmradio/FMRadioService.java index c53efbb..4505e9f 100644 --- a/fmapp/src/com/codeaurora/fmradio/FMRadioService.java +++ b/fmapp/src/com/codeaurora/fmradio/FMRadioService.java @@ -473,7 +473,7 @@ public class FMRadioService extends Service } break; case KeyEvent.KEYCODE_MEDIA_PLAY: - if (mServiceInUse ) { + if (isAntennaAvailable() && mServiceInUse ) { fmOn(); if (isOrderedBroadcast()) { abortBroadcast(); |