mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Persist camera lens selection across sessions.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user