focus before capturing the image only if Focus before capture is enabled

This commit is contained in:
tibbi 2018-06-08 12:13:55 +02:00
parent 885df0ef88
commit b4cb2dd0bb
1 changed files with 1 additions and 1 deletions

View File

@ -802,7 +802,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
} }
override fun tryTakePicture() { override fun tryTakePicture() {
if (mIsFocusSupported) { if (mIsFocusSupported && mActivity.config.focusBeforeCapture) {
lockFocus() lockFocus()
} else { } else {
captureStillPicture() captureStillPicture()