'Handle common navigations in multiple backstack navigation android?

My goal is to implement Instagram-like navigation for my fragments. Like the screenshots I attached, When the user navigates to the Profile fragment from Home, BottomNavigationView doesn't switch to the Profile section. (I can navigate to Profile in each navigation backstack and the state saves!)

What should I do about this behavior? Including the same Profile fragments and directions and arguments in Home NavGraph too? Isn't it redundant?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source