fix: Destroy service after stopping it when deleting recording

This commit is contained in:
Myzel394 2023-12-15 20:03:14 +01:00
parent fa5cd6fbca
commit f772818b7b
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
2 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,9 @@ fun AudioRecordingStatus(
runCatching {
audioRecorder.stopRecording(context)
}
runCatching {
audioRecorder.destroyService(context)
}
audioRecorder.batchesFolder!!.deleteRecordings()
}
},

View File

@ -104,6 +104,9 @@ fun VideoRecordingStatus(
runCatching {
videoRecorder.stopRecording(context)
}
runCatching {
videoRecorder.destroyService(context)
}
videoRecorder.batchesFolder!!.deleteRecordings()
}
},