mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-14 20:08:32 -04:00
observe waypoints livedata in map fragment
This commit is contained in:
@@ -83,6 +83,10 @@ class MapFragment : ScreenFragment("Map"), Logging {
|
||||
onNodesChanged(nodes.values)
|
||||
drawOverlays()
|
||||
}
|
||||
model.waypoints.observe(viewLifecycleOwner) {
|
||||
debug("New waypoints received: ${it.size}")
|
||||
// build Collection<Packet> from (it.values)
|
||||
}
|
||||
zoomToNodes(mapController)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user