kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix: call drawOverlays only when connected
rodzic
66ee722a91
commit
863acb6ce8
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue