mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
lets handle an exception better
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user