diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index 0b7a36624ba81415ef04a30ce306ece9b6d4086a..866b196739788016509960b627eac2014eda25c3 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -1580,12 +1580,14 @@ public class FMRadioService extends Service setAudioPath(false); } mStoppedOnFocusLoss = true; + mSession.setActive(false); break; case AudioManager.AUDIOFOCUS_GAIN: Log.v(LOGTAG, "AudioFocus: received AUDIOFOCUS_GAIN"); if(false == mPlaybackInProgress) startFM(); mStoppedOnFocusLoss = false; + mSession.setActive(true); break; default: Log.e(LOGTAG, "Unknown audio focus change code"+msg.arg1);