mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-02-01 07:46:43 +01:00
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…
x
Reference in New Issue
Block a user