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
if (takePictureAfter) {
takePicture()
} else {
} else if (!mIsVideoMode || !mIsRecording) {
Handler().postDelayed({
focusArea(false, false)
}, 3000)