mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
focus before capturing the image only if Focus before capture is enabled
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user