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 e072fbe7..e90d80cd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/views/CameraPreview.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/views/CameraPreview.kt @@ -469,13 +469,10 @@ class CameraPreview : ViewGroup, TextureView.SurfaceTextureListener, MyPreview { } mCameraState = STATE_PREVIEW } catch (e: Exception) { - mActivity.showErrorToast("Error in onConfigure callback: $e") } } - override fun onConfigureFailed(cameraCaptureSession: CameraCaptureSession) { - mActivity.showErrorToast("Failed configuring capture session") - } + override fun onConfigureFailed(cameraCaptureSession: CameraCaptureSession) {} } try { @@ -494,7 +491,6 @@ class CameraPreview : ViewGroup, TextureView.SurfaceTextureListener, MyPreview { mCameraDevice!!.createCaptureSession(Arrays.asList(surface, mImageReader!!.surface), stateCallback, null) } } catch (e: Exception) { - mActivity.showErrorToast("Error setting up capture session: $e") } }