Block camera switching during video recording.

This commit is contained in:
Greyson Parrelli
2026-02-06 15:10:02 -05:00
parent 4ce3c2309c
commit 5575f75118

View File

@@ -399,6 +399,10 @@ class CameraScreenViewModel : ViewModel() {
}
private fun handleSwitchCameraEvent(state: CameraScreenState) {
if (state.isRecording) {
return
}
// Toggle between front and back camera
val newLensFacing = if (state.lensFacing == CameraSelector.LENS_FACING_BACK) {
CameraSelector.LENS_FACING_FRONT