focus before capturing the image only if Focus before capture is enabled
This commit is contained in:
parent
885df0ef88
commit
b4cb2dd0bb
|
@ -802,7 +802,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||
}
|
||||
|
||||
override fun tryTakePicture() {
|
||||
if (mIsFocusSupported) {
|
||||
if (mIsFocusSupported && mActivity.config.focusBeforeCapture) {
|
||||
lockFocus()
|
||||
} else {
|
||||
captureStillPicture()
|
||||
|
|
Loading…
Reference in New Issue