fix: Recorder start fixes

This commit is contained in:
Myzel394 2023-10-29 11:40:08 +01:00
parent 536271109b
commit 968c3cc32c
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
2 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,10 @@ fun StartRecording(
)
}
runCatching {
audioRecorder.stopRecording(context)
}
AudioRecorderExporter.clearAllRecordings(context)
audioRecorder.startRecording(context)

View File

@ -94,6 +94,7 @@ fun AudioRecorderScreen(
delay(100)
try {
audioRecorder.stopRecording(context)
val file = AudioRecorderExporter(
audioRecorder.recorderService?.getRecordingInformation()
?: settings.lastRecording