From bccd73d7041d96279b5f390f296228b96ef87522 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 10 Oct 2023 19:06:06 +0200 Subject: [PATCH] Revert "fix: Close `CameraSession` in `onDetachedFromWindow()` (#1962)" This reverts commit 02726d47f781d4568ea2a6a9478d7348d4bc3565. --- package/android/src/main/java/com/mrousavy/camera/CameraView.kt | 1 - 1 file changed, 1 deletion(-) 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 dae81a8..6cafe69 100644 --- a/package/android/src/main/java/com/mrousavy/camera/CameraView.kt +++ b/package/android/src/main/java/com/mrousavy/camera/CameraView.kt @@ -125,7 +125,6 @@ class CameraView(context: Context) : override fun onDetachedFromWindow() { super.onDetachedFromWindow() - cameraSession.close() launch { updateLifecycle() } }