prevent reload when re-selecting resolution
This commit is contained in:
parent
ea389c5ac9
commit
f02d0b3ae7
|
@ -361,11 +361,11 @@ class CameraXPreview(
|
|||
isPhotoCapture = isPhotoCapture,
|
||||
isFrontCamera = isFrontCameraInUse()
|
||||
) { index, changed ->
|
||||
mediaSizeStore.storeSize(isPhotoCapture, isFrontCameraInUse(), index)
|
||||
if (changed) {
|
||||
currentRecording?.stop()
|
||||
startCamera()
|
||||
}
|
||||
mediaSizeStore.storeSize(isPhotoCapture, isFrontCameraInUse(), index)
|
||||
startCamera()
|
||||
}
|
||||
} else {
|
||||
toggleResolutions(resolutions)
|
||||
|
|
Loading…
Reference in New Issue