diff --git a/package/android/src/main/java/com/mrousavy/camera/CameraView.kt b/package/android/src/main/java/com/mrousavy/camera/CameraView.kt index 6cafe69..dae81a8 100644 --- a/package/android/src/main/java/com/mrousavy/camera/CameraView.kt +++ b/package/android/src/main/java/com/mrousavy/camera/CameraView.kt @@ -125,6 +125,7 @@ class CameraView(context: Context) : override fun onDetachedFromWindow() { super.onDetachedFromWindow() + cameraSession.close() launch { updateLifecycle() } }