Skip to content

[Bug]: Scroll position lost in Contributions list after theme change #6610

@Kota-Jagadeesh

Description

@Kota-Jagadeesh

Summary

When scrolling through the "Contributions" list and switching the app theme (Light/Dark mode) in Settings, the scroll position is lost. Upon returning to the main screen, the list resets to the very top (the first contribution) instead of maintaining the user's previous position.

Steps to reproduce

  1. Open the Commons app and ensure you are on the Contributions screen.
  2. Scroll down through the list (aroundd 20+ images).
  3. Now navigate to Settings.
  4. Change the Theme (e.g., if on Light, switch to Dark, or vice versa).
  5. Return to the app (Contributions list.)

Expected behaviour

The app should preserve the scroll state. The user should see the same images they were looking at before the theme change.

Actual behaviour

The activity is recreated and the list resets. The user is forced back to the top of the contributions list.

Device name

Redmi note 13 Pro

Android version

Android 13

Commons app version

ProDebug

Device logs

No response

Screenshots

No response

Would you like to work on the issue?

Yes

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions