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:
parent
0ffaa7fc29
commit
a8b85a3053
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user