diff --git a/camera-view/src/main/java/com/xlythe/view/camera/v2/Camera2Module.java b/camera-view/src/main/java/com/xlythe/view/camera/v2/Camera2Module.java index 8130592..6cb9782 100644 --- a/camera-view/src/main/java/com/xlythe/view/camera/v2/Camera2Module.java +++ b/camera-view/src/main/java/com/xlythe/view/camera/v2/Camera2Module.java @@ -274,7 +274,9 @@ public void close() { if (mCaptureSession != null) { try { mCaptureSession.close(); - } catch (CameraAccessException e) { + } catch (Exception e) { + // Instance of CameraAccessException (although not declared). + // Nothing we can do but swallow it. Log.e(TAG, "Failed to close camera", e); } mCaptureSession = null;