mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-14 23:18:43 +00:00
Block camera switching during video recording.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user