android / android/nowinandroid
[Bug]: Multi back stacks support doesn't restore screen when navigate with system back button
- Dominant language
- Kotlin
- Stars
- 21.8k
- Forks
- 4.6k
- Avg merge
- 19h 20m
- Merged PRs (30d)
- 2
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Is there a StackOverflow question about this issue?
- [X] I have searched StackOverflow
### What happened?
When you have the Saved tab open and press the system back button to return to the For you tab, the expected behavior is that the screen previously opened in the For you tab will be displayed. However, instead, the home screen is displayed. Clicking the For you tab again will restore the state.
Expected behavior: When pressing the system back button to return to the For you tab, the screen previously opened in the tab will be restored.
### Relevant logcat output
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributor guide
Research direction
Start by reproducing the reported flow: open a screen in the For you tab, switch to Saved, then press the system back button. Trace the multi-back-stack navigation entry points involved in switching tabs and handling system back. Done means returning to For you restores its previously opened screen instead of the home screen, while selecting For you again remains consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100