fix: refactor overlay handling during offline map downloads

fixes #669
This commit is contained in:
andrekir 2023-07-27 05:52:54 -03:00
parent 3210bf1ad3
commit 094af7c380

View file

@ -412,9 +412,9 @@ fun MapView(model: UIViewModel = viewModel()) {
}
// FIXME workaround to 'nodes.observeAsState' going stale after MapFragment enters onPause state
if (downloadRegionBoundingBox == null) LaunchedEffect(Unit) {
LaunchedEffect(Unit) {
while (true) {
drawOverlays()
if (downloadRegionBoundingBox == null) drawOverlays()
delay(30000L)
}
}