feat: Hide current snackbar on recording start

This commit is contained in:
Myzel394 2024-01-01 15:10:57 +01:00
parent 7b9457fc58
commit cba150b72e
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -230,6 +230,9 @@ fun RecorderEventsHandler(
}
}
}
audioRecorder.onRecordingStart = {
snackbarHostState.currentSnackbarData?.dismiss()
}
audioRecorder.onError = {
scope.launch {
saveAsLastRecording(audioRecorder as RecorderModel)
@ -273,6 +276,9 @@ fun RecorderEventsHandler(
}
}
}
videoRecorder.onRecordingStart = {
snackbarHostState.currentSnackbarData?.dismiss()
}
videoRecorder.onError = {
scope.launch {
saveAsLastRecording(videoRecorder as RecorderModel)