diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index 1986917c0f412eecf3f333a1b7431bc3c6aeb7c0..0c5713b68c6546a6edd69beaf9a54722a0c053f0 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);