https://kotlinlang.org logo
#android
Title
# android
j

Jonny

03/14/2020, 9:48 PM
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

vgonda

03/15/2020, 9:34 PM
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
3 Views