[Bug]: Back button stops working after closing More bottom sheet when on Bookmarks screen
Summary
When the user navigates to the Bookmarks tab and then opens the More bottom sheet (5th nav item), closing the bottom sheet leaves the back button completely unresponsive. The app neither navigates back nor closes. The back button only starts working again after manually tapping any other bottom bar destination.
Steps to reproduce
- Open the app
- Tap the Bookmarks tab (4th item in bottom navigation)
- Tap the More icon (5th item) — bottom sheet opens
- Close the bottom sheet (swipe down or tap outside)
- Press the device back button
Expected behaviour
Pressing back should navigate to the previous destination (Contributions).
Actual behaviour
The back button does nothing. The app is stuck on Bookmarks with back navigation completely unresponsive. Manually tapping any other bottom bar item restores normal back button behaviour.
Device name
Samsung a07
Android version
Android 16
Commons app version
6.3.0
Device logs
No response
Screenshots
https://github.com/user-attachments/assets/298cc04a-1e24-40ce-80ae-43e5fcd22e5e
Would you like to work on the issue?
Yes
I can repro the issue, thanks!
@nicolas-raoul This issue is the Duplicate of #6462
I noticed this may be related to #6462. I was able to reproduce #6462 as well, and PR #6749 fixes both issues — the root cause is the same missing fallback navigation in MainActivity.onBackPressed() for the BOOKMARK case.