From 7ffe53a0ae3550fb2c81d4605b370c60e28f96d9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 30 May 2018 17:50:15 +0200 Subject: [PATCH] draw a focus circle at pressing the preview --- .../com/simplemobiletools/camera/views/PreviewCameraOne.kt | 3 ++- .../com/simplemobiletools/camera/views/PreviewCameraTwo.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraOne.kt b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraOne.kt index 87e32379..4e7dec8b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraOne.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraOne.kt @@ -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 diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt index 5b530970..b26563b3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt @@ -373,7 +373,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie } private fun focusArea() { - + mActivity.drawFocusCircle(mLastClickX, mLastClickY) } private fun lockFocus() {