Skip to content

Commit 5283020

Browse files
committed
fix: Fix TimeoutException by using STARTED lifecycle
1 parent fa21983 commit 5283020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/android/src/main/java/com/mrousavy/camera/core/CameraSession.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ class CameraSession(private val context: Context, private val callback: Callback
431431
if (config.isActive) {
432432
lifecycleRegistry.currentState = Lifecycle.State.RESUMED
433433
} else {
434-
lifecycleRegistry.currentState = Lifecycle.State.CREATED
434+
lifecycleRegistry.currentState = Lifecycle.State.STARTED
435435
}
436436
}
437437

0 commit comments

Comments
 (0)