draw a focus circle at pressing the preview
This commit is contained in:
parent
292e2f6ad0
commit
7ffe53a0ae
|
@ -99,8 +99,9 @@ class PreviewCameraOne : ViewGroup, SurfaceHolder.Callback, MyPreview {
|
|||
if (mIsPreviewShown) {
|
||||
resumePreview()
|
||||
} else {
|
||||
if (!mWasZooming && !mIsPreviewShown)
|
||||
if (!mWasZooming && !mIsPreviewShown) {
|
||||
focusArea(false)
|
||||
}
|
||||
|
||||
mWasZooming = false
|
||||
mSurfaceView.isSoundEffectsEnabled = true
|
||||
|
|
|
@ -373,7 +373,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||
}
|
||||
|
||||
private fun focusArea() {
|
||||
|
||||
mActivity.drawFocusCircle(mLastClickX, mLastClickY)
|
||||
}
|
||||
|
||||
private fun lockFocus() {
|
||||
|
|
Loading…
Reference in New Issue