Skip to content

Commit a7e8112

Browse files
Merge pull request #145 from SimformSolutionsPvtLtd/fix/UNT-T31054_pause_record_fails
fix(UNT-T31054): pause recording fails in android
2 parents 7b44723 + 18a08b0 commit a7e8112

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android/src/main/java/com/audiowaveform/AudioRecorder.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ class AudioRecorder {
178178
fun pauseRecording(recorder: MediaRecorder?, promise: Promise) {
179179
try {
180180
recorder?.pause()
181-
promise.resolve(false)
181+
promise.resolve(true)
182182
} catch (e: IllegalStateException) {
183183
Log.e(Constants.LOG_TAG, "Failed to pause recording")
184+
promise.resolve(false)
184185
}
185186
}
186187

0 commit comments

Comments
 (0)