From 66003992b202cc469812dcaf57a66c72bcb432cd Mon Sep 17 00:00:00 2001 From: Venkateshwarlu Domakonda <vdomak@codeaurora.org> Date: Mon, 21 Jul 2014 13:58:57 +0530 Subject: [PATCH] FM: Fix the issue with headset update notification FMService receiving headset removal intent after AUDIO_BECOMING_NOISY intent receives. As AUDIO_BECOMING_NOISY will receive only when headset removed, update the headset status flag when the intent receives. Change-Id: I1fe470564dc5b75fac8440849fd77696018fec52 CRs-Fixed: 697141 --- fmapp2/src/com/caf/fmradio/FMRadioService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java index 38f870f..2de50e7 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadioService.java +++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java @@ -519,6 +519,7 @@ public class FMRadioService extends Service Log.d(LOGTAG, "FMMediaButtonIntentReceiver.AUDIO_BECOMING_NOISY"); String intentAction = intent.getAction(); if (FMMediaButtonIntentReceiver.AUDIO_BECOMING_NOISY.equals(intentAction)) { + mHeadsetPlugged = false; if (isFmOn()) { /* Disable FM and let the UI know */ -- GitLab