make parameters and camera nullable at autoflash
This commit is contained in:
parent
d02df3bd4d
commit
7eeba29a8c
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue