mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-01 17:30:11 +02:00
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() {
|
override fun tryTakePicture() {
|
||||||
if (mIsFocusSupported) {
|
if (mIsFocusSupported && mActivity.config.focusBeforeCapture) {
|
||||||
lockFocus()
|
lockFocus()
|
||||||
} else {
|
} else {
|
||||||
captureStillPicture()
|
captureStillPicture()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user