make parameters and camera nullable at autoflash

This commit is contained in:
tibbi 2017-05-05 11:39:13 +02:00
parent d02df3bd4d
commit 7eeba29a8c
1 changed files with 2 additions and 2 deletions

View File

@ -487,8 +487,8 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
Handler().postDelayed({ Handler().postDelayed({
mActivity.runOnUiThread { mActivity.runOnUiThread {
mParameters!!.flashMode = Camera.Parameters.FLASH_MODE_AUTO mParameters?.flashMode = Camera.Parameters.FLASH_MODE_AUTO
mCamera!!.parameters = mParameters mCamera?.parameters = mParameters
} }
}, 1000) }, 1000)
} }