fix: Add pause method to VideoRecorderService

This commit is contained in:
Myzel394 2023-12-01 00:20:23 +01:00
parent 79b33ced2e
commit c40361aced
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -129,6 +129,14 @@ class VideoRecorderService :
closeCamera()
}
override fun pause() {
super.pause()
stopActiveRecording()
}
// `resume` override not needed as `startNewCycle` is called by `IntervalRecorderService`
private fun stopActiveRecording() {
activeRecording?.stop()
}