diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt index c333967f..34148740 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt @@ -487,8 +487,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan Handler().postDelayed({ mActivity.runOnUiThread { - mParameters!!.flashMode = Camera.Parameters.FLASH_MODE_AUTO - mCamera!!.parameters = mParameters + mParameters?.flashMode = Camera.Parameters.FLASH_MODE_AUTO + mCamera?.parameters = mParameters } }, 1000) }