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

Promotion of fm.lnx.1.0-00008.

CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
963817   I1dcd614614326bc6fc5da15f8f64ca5312b79da3   Change value of mSpeakerPhoneOn when BT becomes on or of

Change-Id: Ic0e583ef69fb8c78b0fe029d9b0c881e45df31f7
CRs-Fixed: 963817
parents 0b6b641e 693dc454
No related branches found
No related tags found
No related merge requests found
......@@ -622,6 +622,10 @@ public class FMRadioService extends Service
} catch (RemoteException e) {
e.printStackTrace();
}
mSpeakerPhoneOn = bA2dpConnected;
Log.d(LOGTAG, "A2DP, mSpeakerPhoneOn: " + bA2dpConnected);
if (!bA2dpConnected) {
Log.d(LOGTAG, "A2DP device is dis-connected!");
mA2dpDisconnected = true;
......@@ -797,6 +801,7 @@ public class FMRadioService extends Service
/* Update the UI based on the state change of the headset/antenna*/
if(!isAntennaAvailable())
{
mSpeakerPhoneOn = false;
if (!isFmOn())
return;
/* Disable FM and let the UI know */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment