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
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 @@
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 */