apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

[Bug]: Back button stops working after closing More bottom sheet when on Bookmarks screen

Open Shoaibkhalid65 opened this issue 8 months ago • 3 comments

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

  1. Open the app
  2. Tap the Bookmarks tab (4th item in bottom navigation)
  3. Tap the More icon (5th item) — bottom sheet opens
  4. Close the bottom sheet (swipe down or tap outside)
  5. 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

Shoaibkhalid65 avatar Mar 17 '26 10:03 Shoaibkhalid65

I can repro the issue, thanks!

nicolas-raoul avatar Mar 17 '26 11:03 nicolas-raoul

@nicolas-raoul This issue is the Duplicate of #6462

Kota-Jagadeesh avatar Mar 17 '26 11:03 Kota-Jagadeesh

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.

Shoaibkhalid65 avatar Mar 17 '26 12:03 Shoaibkhalid65