diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/views/CameraPreview.kt b/app/src/main/kotlin/com/simplemobiletools/camera/views/CameraPreview.kt index f6efefdb..88d07a94 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/CameraPreview.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/CameraPreview.kt @@ -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() {