diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt index 3e8fcc57..d451068f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt @@ -378,8 +378,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan } fun showChangeResolutionDialog() { - val oldResolution = getSelectedResolution() if (mCamera != null) { + val oldResolution = getSelectedResolution() ChangeResolutionDialog(mActivity, config, mCamera!!) { if (oldResolution != getSelectedResolution()) { refreshPreview()