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

[Bug]: FAB buttons shrink/hide and open vertically instead of horizontally on Contributions screen in landscape mode after navigation

Open Shoaibkhalid65 opened this issue 8 months ago • 1 comments

Summary

On the Contributions screen, the FAB menu (camera, gallery, custom gallery) correctly opens horizontally in landscape mode on first visit. However, after navigating to another tab and returning to Contributions in landscape mode, the FABs revert to opening vertically, with the main FAB and sub FABs appearing shrunk or partially hidden. The same broken behaviour is also observed in the Contributions tab of the Profile screen.

Steps to reproduce

  1. Open the app (Contributions tab is shown by default)
  2. Rotate the device to landscape mode
  3. Tap the FAB plus button — sub FABs (camera, gallery, custom gallery) open correctly horizontally
  4. Navigate to any other tab (Nearby, Explore, or Bookmarks)
  5. Return to the Contributions tab
  6. Tap the FAB plus button again

Expected behaviour

FABs should always open horizontally in landscape mode regardless of navigation history.

Actual behaviour

FABs open vertically after returning to the Contributions screen in landscape mode. The main FAB and sub FABs appear shrunk or partially hidden instead of expanding horizontally.

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/e266f12f-91e2-41f2-8d79-6b2eaf85dd30

Would you like to work on the issue?

Yes

Shoaibkhalid65 avatar Mar 18 '26 02:03 Shoaibkhalid65

I can reproduce the bug in the main branch

nicolas-raoul avatar Mar 22 '26 06:03 nicolas-raoul