keep autofocusing every 3 secs only we are in photo mode, or not recording
This commit is contained in:
parent
3d86c9518f
commit
ed3bdfe5dd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue