summaryrefslogtreecommitdiffstats
path: root/fmapp2/src/com/caf/fmradio/FMRadioService.java
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2013-09-11 18:52:25 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2013-09-11 18:52:24 -0700
commita277715f3a6256ee2fdb985113e711133b2dd914 (patch)
treed4b6d0b27eb48b1ba462123954a9d384182e89a8 /fmapp2/src/com/caf/fmradio/FMRadioService.java
parent579a41a7aa79a0bdb94faeb8620098ccd0cd372d (diff)
parent5dfffc0706617d4f59491de2aedabb9ce6696f7e (diff)
downloadandroid_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.java5
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;