FM: Do not stop Recording in fm radio reset thread context
Recording was stopped in context of fm radio reset thread
and Recorded path shown as a Toast which results FM App to
show a User Interface component from a non-UI thread and
FM app terminated.
As part of SSR handling do not stop Recording in fm radio
reset thread context.Later as part of FMService's onRadioReset
Callback recording will be stopped from UI thread context and
FM App will be recovered automatically.
CRs-Fixed: 2717103
Change-Id: I59cd2a832cb0864b917e85ebadd835fa1809a20d
diff --git a/fmapp2/src/com/caf/fmradio/FMRadioService.java b/fmapp2/src/com/caf/fmradio/FMRadioService.java
index 98bad9e..980a709 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadioService.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadioService.java
@@ -2343,11 +2343,6 @@
* Reset (OFF) FM Operations: This resets all the current FM operations .
*/
private void fmOperationsReset() {
- if (isFmRecordingOn())
- {
- stopRecording();
- }
-
AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
if(audioManager != null)
{