fix: Destroy recording after stopping it

This commit is contained in:
Myzel394 2023-12-05 18:39:05 +01:00
parent 55e00c132a
commit 699acb5311
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -133,6 +133,11 @@ abstract class BaseRecorderModel<S : IntervalRecorderService.Settings, I, T : In
suspend fun stopRecording(context: Context) {
recorderService!!.stopRecording()
val intent = Intent(context, intentClass)
context.unbindService(connection)
context.stopService(intent)
}
fun pauseRecording() {