mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +02:00
fix: Destroy service after stopping it when deleting recording
This commit is contained in:
parent
fa5cd6fbca
commit
f772818b7b
@ -78,6 +78,9 @@ fun AudioRecordingStatus(
|
|||||||
runCatching {
|
runCatching {
|
||||||
audioRecorder.stopRecording(context)
|
audioRecorder.stopRecording(context)
|
||||||
}
|
}
|
||||||
|
runCatching {
|
||||||
|
audioRecorder.destroyService(context)
|
||||||
|
}
|
||||||
audioRecorder.batchesFolder!!.deleteRecordings()
|
audioRecorder.batchesFolder!!.deleteRecordings()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -104,6 +104,9 @@ fun VideoRecordingStatus(
|
|||||||
runCatching {
|
runCatching {
|
||||||
videoRecorder.stopRecording(context)
|
videoRecorder.stopRecording(context)
|
||||||
}
|
}
|
||||||
|
runCatching {
|
||||||
|
videoRecorder.destroyService(context)
|
||||||
|
}
|
||||||
videoRecorder.batchesFolder!!.deleteRecordings()
|
videoRecorder.batchesFolder!!.deleteRecordings()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user