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
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index b610187..048fa3a 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -622,6 +622,10 @@
} 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 @@
/* 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 */