FM: Fix ANR due to incorrect error handling in stopRecording

stopRecording() API gets called from onRecordingStopped() callback
function. As a result, when recording can't be stopped successfully
in error scenarios, stopRecording() gets called in loop.

This fix removes the call stopRecording() from callback function and
does the required UI update.

CRs-Fixed: 943288
Change-Id: I0e2ea2adeb0c603f16541d04a5a244bc1fcd51d7
1 file changed
tree: 223f1f75152fa5c695e70a7f1215565482559e57
  1. fmapp/
  2. fmapp2/
  3. FMRecord/
  4. jni/
  5. libfm_jni/
  6. qcom/
  7. Android.mk