mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-10 04:21:37 -04:00
observe waypoints livedata in map fragment
This commit is contained in:
1 parent
80a2f2601c
commit
2b8b10a8cf
1 file changed
+4
@@ -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