I'm looking for the answer to this question: How to implement a nested master detail flow on Android?
Looking for example code. Essentially I'm trying to implement a master-submaster-detail layout (master list, click item brings me to submaster another list, click item brings me to details of that list (this details view will have comments hence another list), and from detail view, I can navigate up to submaster and up to master. This is all in ONE tab for the navigation, I can click on another tab and it brings me to a different master/detail fragment
In my MainActivity, I have four master fragments that I go to via a BottomNavigation bar. For each master fragment, clicking on item in the RecyclerView will take me to a detail fragment. In the detail fragment, I still see the BottomNavigation bar (on purpose because I thought this would easier to navigate so user do not need to navigate all the way up to the master fragment in order to change tabs to another master fragment). However, when I am in the detail fragment and I click the BottomNavigation tab to another master fragment, and in that other master fragment I try to click on item in the recyclerview to its own detail fragment, it does NOT work. I must've implemented this navigation wrong.
For example: I have tabs for FragmentA and FragmentB. Currently I am in FragmentA and I see a RecyclerView. I click on the Xth item in FragmentA RecyclerView. This works fine. I click the tab for FragmentB. This also works fine. I now try to click on Yth item in FragmentB, this does NOT work. It only works if I click back, THEN click on Yth item in FragmentB, then it work.
What's the problem?