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) {
|
if (mIsPreviewShown) {
|
||||||
resumePreview()
|
resumePreview()
|
||||||
} else {
|
} else {
|
||||||
if (!mWasZooming && !mIsPreviewShown)
|
if (!mWasZooming && !mIsPreviewShown) {
|
||||||
focusArea(false)
|
focusArea(false)
|
||||||
|
}
|
||||||
|
|
||||||
mWasZooming = false
|
mWasZooming = false
|
||||||
mSurfaceView.isSoundEffectsEnabled = true
|
mSurfaceView.isSoundEffectsEnabled = true
|
||||||
|
|
|
@ -373,7 +373,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun focusArea() {
|
private fun focusArea() {
|
||||||
|
mActivity.drawFocusCircle(mLastClickX, mLastClickY)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun lockFocus() {
|
private fun lockFocus() {
|
||||||
|
|
Loading…
Reference in New Issue