avoid shutter actions when not in state_preview state
This commit is contained in:
parent
b4cb2dd0bb
commit
ac3a09dd85
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue