mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-19 04:09:37 -04:00
fix: call drawOverlays only when connected
This commit is contained in:
@@ -447,7 +447,7 @@ fun MapView(model: UIViewModel = viewModel()) {
|
||||
// FIXME workaround to 'nodes.observeAsState' going stale after MapFragment enters onPause state
|
||||
LaunchedEffect(Unit) {
|
||||
while (true) {
|
||||
if (downloadRegionBoundingBox == null) map.drawOverlays()
|
||||
if (model.isConnected() && downloadRegionBoundingBox == null) map.drawOverlays()
|
||||
delay(30000L)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user