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({
|
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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue