From 9696db4ef4393ed6b25898fe2ddc98fe2bf95435 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 11 Jun 2018 17:52:33 +0200 Subject: [PATCH] set preview intent at control capture intent --- .../com/simplemobiletools/camera/views/PreviewCameraTwo.kt | 1 + 1 file changed, 1 insertion(+) 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 0f322ac1..fee306f6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt @@ -469,6 +469,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie val surface = Surface(texture) mPreviewRequestBuilder = mCameraDevice!!.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW) + mPreviewRequestBuilder!!.set(CaptureRequest.CONTROL_CAPTURE_INTENT, CaptureRequest.CONTROL_CAPTURE_INTENT_PREVIEW) mPreviewRequestBuilder!!.addTarget(surface) if (mIsInVideoMode) {