Fix incorrect back navigation to ForYou instead of Topic screen (#1866)
When navigating ForYou → Topic → switch tab → back, the user landed on the ForYou screen instead of the Topic screen. The root cause was that toEntries() flattened all tab sub-stacks into a single entries list, causing ListDetailSceneStrategy to mis-render after cross-tab back. - Change toEntries() to only return entries from the current tab's sub-stack while still decorating all stacks for state preservation - Add BackHandler for cross-tab back navigation since NavDisplay now only sees within-tab entries - Add unit test for the sub-stack preservation scenario - Un-ignore navigationBar_multipleBackStackInterests test - Add back-button variant instrumented testpull/2072/head
parent
ade8065442
commit
88c9bbd719
Loading…
Reference in new issue