diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt index 5d5cb49e..be680bd6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt @@ -141,7 +141,10 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan mParameters = mCamera!!.parameters mMaxZoom = mParameters!!.maxZoom - mZoomRatios = mParameters!!.zoomRatios as ArrayList + + if (mParameters!!.isZoomSupported) + mZoomRatios = mParameters!!.zoomRatios as ArrayList + mSupportedPreviewSizes = mParameters!!.supportedPreviewSizes.sortedByDescending { it.width * it.height } refreshPreview()