lets handle an exception better
This commit is contained in:
parent
2f9da53c5b
commit
ec9c121333
|
@ -822,6 +822,8 @@ class CameraPreview : ViewGroup, TextureView.SurfaceTextureListener, MyPreview {
|
|||
mPreviewRequestBuilder!!.addTarget(recorderSurface)
|
||||
} catch (e: Exception) {
|
||||
mActivity.showErrorToast(e)
|
||||
mCameraState = STATE_PREVIEW
|
||||
return
|
||||
}
|
||||
|
||||
val captureCallback = object : CameraCaptureSession.StateCallback() {
|
||||
|
|
Loading…
Reference in New Issue