Skip to content

Commit

Permalink
Merge pull request #145 from SimformSolutionsPvtLtd/fix/UNT-T31054_pa…
Browse files Browse the repository at this point in the history
…use_record_fails

fix(UNT-T31054): pause recording fails in android
  • Loading branch information
mukesh-simform authored Dec 18, 2024
2 parents 7b44723 + 18a08b0 commit a7e8112
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/src/main/java/com/audiowaveform/AudioRecorder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ class AudioRecorder {
fun pauseRecording(recorder: MediaRecorder?, promise: Promise) {
try {
recorder?.pause()
promise.resolve(false)
promise.resolve(true)
} catch (e: IllegalStateException) {
Log.e(Constants.LOG_TAG, "Failed to pause recording")
promise.resolve(false)
}
}

Expand Down

0 comments on commit a7e8112

Please sign in to comment.