fix: Fix Camera not stopping when isActive
is set to false
(#2361)
This commit is contained in:
parent
dc8df80085
commit
2b10622559
@ -520,6 +520,7 @@ class CameraSession(private val context: Context, private val cameraManager: Cam
|
||||
|
||||
if (!config.isActive) {
|
||||
isRunning = false
|
||||
captureSession?.stopRepeating()
|
||||
return
|
||||
}
|
||||
if (captureSession == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user