[Bug]: FAB buttons shrink/hide and open vertically instead of horizontally on Contributions screen in landscape mode after navigation
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
- Open the app (Contributions tab is shown by default)
- Rotate the device to landscape mode
- Tap the FAB plus button — sub FABs (camera, gallery, custom gallery) open correctly horizontally
- Navigate to any other tab (Nearby, Explore, or Bookmarks)
- Return to the Contributions tab
- 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
I can reproduce the bug in the main branch