I'm having a problem where when I have navigated a...
# android
j
I'm having a problem where when I have navigated according to the actions selected in the images below, and then click the android back button from the findJobsFragment, the app goes to the background as expected. However when I open the app again, I am returned to the homeFragment instead of the findJobsFragment. How can I get the expected behavior? https://imgur.com/DWf20LU https://imgur.com/2BKGHtn
v
Yes! I ran into a similar thing on rotation change. I was setting the nav graph both in the xml and in the Activity, which you’re not supposed to do
It essentially sets the graph twice, and the second time it clears the backstack