1

I have a problem I am using the new navigation controller from Android Jetpack. I have 3 items in my bottom navigation menu, and the first item has 5 fragments one after another. When I click to the second item in bottom navigation, and return to my first item it opens the first fragment not the last opened. Because android:id="@+id/destination_home" in Menu is the same as the same as id in my navigation graph.

Can anyone advice the best solution? Thanks

RKRK
  • 1,284
  • 5
  • 14
  • 18

1 Answers1

1

For now navigation component not supports of saving "multi stack". This issue can be fixed with custom navigation controller: https://github.com/STAR-ZERO/navigation-keep-fragment-sample P.S.: also in this thread guy has same problem and you can see the answer, maybe it will help you.

Sergey Grishin
  • 392
  • 2
  • 16