removing some error messages

This commit is contained in:
tibbi 2019-10-28 23:07:50 +01:00
parent b1265bc960
commit 07b45d0f96

View File

@ -469,13 +469,10 @@ class CameraPreview : ViewGroup, TextureView.SurfaceTextureListener, MyPreview {
} }
mCameraState = STATE_PREVIEW mCameraState = STATE_PREVIEW
} catch (e: Exception) { } catch (e: Exception) {
mActivity.showErrorToast("Error in onConfigure callback: $e")
} }
} }
override fun onConfigureFailed(cameraCaptureSession: CameraCaptureSession) { override fun onConfigureFailed(cameraCaptureSession: CameraCaptureSession) {}
mActivity.showErrorToast("Failed configuring capture session")
}
} }
try { try {
@ -494,7 +491,6 @@ class CameraPreview : ViewGroup, TextureView.SurfaceTextureListener, MyPreview {
mCameraDevice!!.createCaptureSession(Arrays.asList(surface, mImageReader!!.surface), stateCallback, null) mCameraDevice!!.createCaptureSession(Arrays.asList(surface, mImageReader!!.surface), stateCallback, null)
} }
} catch (e: Exception) { } catch (e: Exception) {
mActivity.showErrorToast("Error setting up capture session: $e")
} }
} }