From d21124e3bc6cfa3eb9f5254781fc79aad8e6ba52 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 11 Jun 2018 15:07:03 +0200 Subject: [PATCH] flip autofocus canceling and stopRepeating --- .../com/simplemobiletools/camera/views/PreviewCameraTwo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8c7d6272..3da652c1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt @@ -597,8 +597,8 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie } } - mCaptureSession!!.stopRepeating() cancelAutoFocus() + mCaptureSession!!.stopRepeating() mPreviewRequestBuilder!!.apply { // touch-to-focus inspired by OpenCamera val characteristics = getCameraCharacteristics()