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) {
|
if (!config.isActive) {
|
||||||
isRunning = false
|
isRunning = false
|
||||||
|
captureSession?.stopRepeating()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (captureSession == null) {
|
if (captureSession == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user