mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-15 09:19:05 -04:00
The node actions dropdown (favorite, mute, message, etc.) stopped
appearing after visiting a node detail screen and navigating back.
This is a known issue with Popup anchoring in adaptive navigation
layouts (ListDetailSceneStrategy).
Three fixes applied:
1. Move animateItem() from NodeItem/NodeItemCompact children to the
root Box — animateItem() must be on the root composable of the
LazyColumn item for correct layout tracking. Having it on a child
caused stale layout coordinates after pane transitions.
2. Wrap NodeContextMenu in Box(Modifier.matchParentSize()) to give
the DropdownMenu a properly-sized popup anchor that survives
ListDetailSceneStrategy pane deactivation/reactivation.
3. Replace stale remember(node) { ourNode?.num == node.num } with a
direct computation for isThisNode — the old version was missing
ourNode as a remember key, so it could return stale results when
ourNode loaded after initial composition.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>