mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
prevent reload when re-selecting resolution
This commit is contained in:
@ -361,12 +361,12 @@ class CameraXPreview(
|
||||
isPhotoCapture = isPhotoCapture,
|
||||
isFrontCamera = isFrontCameraInUse()
|
||||
) { index, changed ->
|
||||
mediaSizeStore.storeSize(isPhotoCapture, isFrontCameraInUse(), index)
|
||||
if (changed) {
|
||||
currentRecording?.stop()
|
||||
}
|
||||
mediaSizeStore.storeSize(isPhotoCapture, isFrontCameraInUse(), index)
|
||||
startCamera()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
toggleResolutions(resolutions)
|
||||
}
|
||||
|
Reference in New Issue
Block a user