Skip to content
Snippets Groups Projects
Commit ae4a636c authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Promotion of fm.lnx.1.0-00015.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
972818   Ie2d3759363151bf991f890cd58155e184ad3331e   Restore default wired headset on FM power off

Change-Id: Ibc6ba99f2f1cbd73600aae8aa707d2b4bffc1bb3
CRs-Fixed: 972818
parents 5c88c4f7 6fc2c7de
Branches
No related tags found
No related merge requests found
......@@ -1680,20 +1680,29 @@ public class FMRadio extends Activity
private void disableRadio() {
boolean bStatus = false;
boolean bSpeakerPhoneOn = isSpeakerEnabled();
cancelSearch();
endSleepTimer();
if(mRecording) {
// Stop if there is an ongoing Record
if(mRecording) {
stopRecording();
}
if(mService != null) {
try {
bStatus = mService.fmOff();
enableRadioOnOffUI();
if (bStatus == false) {
mCommandFailed = CMD_FMOFF;
Log.e(LOGTAG, " mService.fmOff failed");
}
enableRadioOnOffUI();
// restore default wired headset on FM power off
if (bSpeakerPhoneOn) {
mService.enableSpeaker(false);
mSpeakerButton.setImageResource(R.drawable.btn_earphone);
}
}catch (RemoteException e) {
e.printStackTrace();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment