mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
fix: Destroy recording after stopping it
This commit is contained in:
parent
55e00c132a
commit
699acb5311
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user