From 57698fb817a4e2c9b608046b852903f212967f1c Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 7 Jun 2018 15:41:42 +0200 Subject: [PATCH] set a control capture intent at recording --- .../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 1c73f140..56efeb0e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/PreviewCameraTwo.kt @@ -714,6 +714,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie val texture = mTextureView.surfaceTexture texture.setDefaultBufferSize(mPreviewSize!!.width, mPreviewSize!!.height) mPreviewRequestBuilder = mCameraDevice!!.createCaptureRequest(CameraDevice.TEMPLATE_RECORD) + mPreviewRequestBuilder!!.set(CaptureRequest.CONTROL_CAPTURE_INTENT, CaptureRequest.CONTROL_CAPTURE_INTENT_VIDEO_RECORD) val surfaces = ArrayList() val previewSurface = Surface(texture)