mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
avoid shutter actions when not in state_preview state
This commit is contained in:
@ -802,6 +802,10 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
||||
}
|
||||
|
||||
override fun tryTakePicture() {
|
||||
if (mCameraState != STATE_PREVIEW) {
|
||||
return
|
||||
}
|
||||
|
||||
if (mIsFocusSupported && mActivity.config.focusBeforeCapture) {
|
||||
lockFocus()
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user