catch all exceptions at setting up the preview session

This commit is contained in:
tibbi 2018-06-05 13:17:57 +02:00
parent aae28aeb03
commit 686f37b32a
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
}
mCaptureSession!!.setRepeatingRequest(mPreviewRequest, mCaptureCallback, mBackgroundHandler)
mCameraState = STATE_PREVIEW
} catch (e: CameraAccessException) {
} catch (e: Exception) {
}
}