mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
observe waypoints livedata in map fragment
This commit is contained in:
parent
80a2f2601c
commit
2b8b10a8cf
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue