kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
observe waypoints livedata in map fragment
rodzic
80a2f2601c
commit
2b8b10a8cf
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue