mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: call drawOverlays only when connected
This commit is contained in:
parent
66ee722a91
commit
863acb6ce8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue