FM: Call and FM concurrency change

Set Media Session active to false when Call State
is Changed and set it to true when FM resumes after call.

CRs-Fixed: 2938931
Change-Id: I821e4546bdc8bdbae681a62c5d80f28bf97087cc
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index 861e4aa..7e36323 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -1478,6 +1478,11 @@
            boolean bTempSpeaker = mSpeakerPhoneOn ; //need to restore SpeakerPhone
            boolean bTempMute = mMuted;// need to restore Mute status
            int bTempCall = mCallStatus;//need to restore call status
+           if (mSession != null && mSession.isActive()) {
+               Log.d(LOGTAG, "onCallStateChanged: State - " + state
+                       + " Session is Active: " + mSession.isActive() );
+               mSession.setActive(false);
+           }
            if (isFmOn() && fmOff()) {
                if((mServiceInUse) && (mCallbacks != null)) {
                    try {