fix: Cancel focus on session close (#2578)
This commit is contained in:
parent
2c52fb01e4
commit
9af6e61dc8
@ -64,6 +64,7 @@ class PersistentCameraCaptureSession(private val cameraManager: CameraManager, p
|
||||
get() = isActive && session != null && device != null && !didDestroyFromOutside
|
||||
|
||||
override fun close() {
|
||||
focusJob?.cancel()
|
||||
session?.tryAbortCaptures()
|
||||
device?.close()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user