Files
Meshtastic-Android/feature
James Rich 037e3f549b fix(node): restore long-press context menu after navigation
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>
2026-05-31 14:33:07 -05:00
..