keep autofocusing every 3 secs only we are in photo mode, or not recording

This commit is contained in:
tibbi 2017-05-07 22:42:46 +02:00
parent 3d86c9518f
commit ed3bdfe5dd
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
camera.parameters = mParameters camera.parameters = mParameters
if (takePictureAfter) { if (takePictureAfter) {
takePicture() takePicture()
} else { } else if (!mIsVideoMode || !mIsRecording) {
Handler().postDelayed({ Handler().postDelayed({
focusArea(false, false) focusArea(false, false)
}, 3000) }, 3000)