draw a focus circle at pressing the preview

This commit is contained in:
tibbi 2018-05-30 17:50:15 +02:00
parent 292e2f6ad0
commit 7ffe53a0ae
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -373,7 +373,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
}
private fun focusArea() {
mActivity.drawFocusCircle(mLastClickX, mLastClickY)
}
private fun lockFocus() {