I\'m having some trouble to add options menu on a single fragment because it\'s breaking the navigation Up. Here my code
I have an single Activity with NoActio
NoActio
If you're using setSupportActionBar, you must use setupActionBarWithNavController(), not toolbar.setupWithNavController as per the documentation.
setSupportActionBar
setupActionBarWithNavController()
toolbar.setupWithNavController