fix: Also call onInitialized when isActive=false

related to https://github.com/mrousavy/react-native-vision-camera/issues/2364#issuecomment-1883201425
This commit is contained in:
Marc Rousavy 2024-01-09 17:58:57 +01:00
parent 0ffaa7fc29
commit a8b85a3053
No known key found for this signature in database
GPG Key ID: 8B9C709EA0B16A6D

View File

@ -187,7 +187,7 @@ class CameraSession(private val context: Context, private val cameraManager: Cam
this.configuration = config this.configuration = config
// Notify about Camera initialization // Notify about Camera initialization
if (diff.deviceChanged && config.isActive) { if (diff.deviceChanged) {
callback.onInitialized() callback.onInitialized()
} }
} catch (error: Throwable) { } catch (error: Throwable) {