FM: do not resume FM after call when fm stopped on focus loss
do not resume FM after call when fm stopped on focus loss.
CRs-Fixed: 2463988
Change-Id: Ice86dda5bd610ea013cc9c86417730a0d27f616b
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index c2f08d4..d25e5a8 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -1512,7 +1512,10 @@
mMuted = bTempMute;
}
} else if (TelephonyManager.CALL_STATE_IDLE == state) {
- resumeAfterCall();
+ /* do not resume FM after call when fm stopped on focus loss */
+ if(mStoppedOnFocusLoss == false) {
+ resumeAfterCall();
+ }
}
}