-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pop from back stack when Settings back arrow is pressed #125
Conversation
taking a look at this, I had intentionally changed it from using
|
Thanks for the context. I think the old behavior (popBackStack()) is what we actually want. Do you have repro steps for the old bug? It could be that the cause of the bug was actually fixed since #28. |
Yes, my repro steps for the old bug were:
But it seems like the issue has been solved here now! I'm going to poke around some more, but i think this change should be good to go :) Unfortunately at the moment I'm not entirely sure which change has solved this issue. |
This somehow didn't make it into #125, even though a test was written that depended on it
This somehow didn't make it into #125, even though a test was written that depended on it
When the back arrow is pressed on
SettingsScreen
,navController.navigate(PREVIEW_ROUTE)
was being called, which addedSettingsScreen
to the back stack. Instead,navController.popBackStack()
can be used to return to the previous screen, mimicking the behavior of using the device's back button (or back gesture).