set preview intent at control capture intent

This commit is contained in:
tibbi 2018-06-11 17:52:33 +02:00
parent f246a23440
commit 9696db4ef4

View File

@ -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) {