Persist camera lens selection across sessions.

This commit is contained in:
Greyson Parrelli
2026-02-06 15:10:17 -05:00
parent 13435c0b54
commit 2248abb749
6 changed files with 33 additions and 16 deletions

View File

@@ -398,6 +398,10 @@ class CameraScreenViewModel : ViewModel() {
_state.value = state.copy(zoomRatio = newZoom)
}
fun setLensFacing(lensFacing: Int) {
_state.value = _state.value.copy(lensFacing = lensFacing)
}
private fun handleSwitchCameraEvent(state: CameraScreenState) {
if (state.isRecording) {
return