fix the camera navigation in the emulator

This commit is contained in:
Kevin Gorham 2019-02-27 05:30:34 -07:00 committed by Kevin Gorham
parent e2c454907d
commit f37da93adc
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ internal open class Camera2(callback: CameraViewImpl.Callback, preview: PreviewI
return
}
val previewSize = chooseOptimalSize()
mPreview.setBufferSize(previewSize.width, previewSize.height)
mPreview.setBufferSize(previewSize.width/4, previewSize.height/4)
val surface = mPreview.surface
try {
mPreviewRequestBuilder = mCamera!!.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW)