Skip to content

Commit

Permalink
make parameters and camera nullable at autoflash
Browse files Browse the repository at this point in the history
  • Loading branch information
tibbi committed May 5, 2017
1 parent d02df3b commit 7eeba29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/com/simplemobiletools/camera/Preview.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7eeba29

Please sign in to comment.