mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-04-20 10:17:24 +02: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)
|
mPreviewRequestBuilder!!.addTarget(recorderSurface)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
mActivity.showErrorToast(e)
|
mActivity.showErrorToast(e)
|
||||||
|
mCameraState = STATE_PREVIEW
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
val captureCallback = object : CameraCaptureSession.StateCallback() {
|
val captureCallback = object : CameraCaptureSession.StateCallback() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user