diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2013-09-11 18:52:25 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2013-09-11 18:52:24 -0700 |
commit | a277715f3a6256ee2fdb985113e711133b2dd914 (patch) | |
tree | d4b6d0b27eb48b1ba462123954a9d384182e89a8 /fmapp2/src/com/caf/fmradio/FMRadioService.java | |
parent | 579a41a7aa79a0bdb94faeb8620098ccd0cd372d (diff) | |
parent | 5dfffc0706617d4f59491de2aedabb9ce6696f7e (diff) | |
download | android_hardware_qcom_fm-a277715f3a6256ee2fdb985113e711133b2dd914.tar.gz android_hardware_qcom_fm-a277715f3a6256ee2fdb985113e711133b2dd914.tar.bz2 android_hardware_qcom_fm-a277715f3a6256ee2fdb985113e711133b2dd914.zip |
Merge "fmapp2: Fix the issue FM app crash"
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadioService.java')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadioService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index a73047a..5ecb5be 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -738,14 +738,15 @@ public class FMRadioService extends Service //reason for resending the Speaker option is we are sending //ACTION_FM=1 to AudioManager, the previous state of Speaker we set //need not be retained by the Audio Manager. + AudioSystem.setDeviceConnectionState(AudioSystem.DEVICE_OUT_FM, + AudioSystem.DEVICE_STATE_AVAILABLE, ""); if (isSpeakerEnabled()) { mSpeakerPhoneOn = true; AudioSystem.setForceUse(AudioSystem.FOR_MEDIA, AudioSystem.FORCE_SPEAKER); } else { AudioSystem.setForceUse(AudioSystem.FOR_MEDIA, AudioSystem.FORCE_NONE); } - AudioSystem.setDeviceConnectionState(AudioSystem.DEVICE_OUT_FM, - AudioSystem.DEVICE_STATE_AVAILABLE, ""); + sendRecordServiceIntent(RECORD_START); } mPlaybackInProgress = true; |