👋 I was looking at the new cameraEvents(): Flow<CameraEvent> implementation. It looks like the listeners aren't cleared when the channel is closed / cancelled. I'd expect something like this:
callbackFlow {
val idleListener = GoogleMap.OnCameraIdleListener {
offer(CameraIdleEvent)
}
...
setOnCameraIdleListener(idleListener)
awaitClose {
setOnCameraIdleListener(null)
...
}
}
Happy to send a PR 😃 .
👋 I was looking at the new
cameraEvents(): Flow<CameraEvent>implementation. It looks like the listeners aren't cleared when the channel is closed / cancelled. I'd expect something like this:callbackFlow { val idleListener = GoogleMap.OnCameraIdleListener { offer(CameraIdleEvent) } ... setOnCameraIdleListener(idleListener) awaitClose { setOnCameraIdleListener(null) ... } }Happy to send a PR 😃 .