Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix viewpager position snapping back to 0 #160

Merged
merged 2 commits into from
Mar 8, 2024
Merged

Conversation

naveensingh
Copy link
Member

What is it?

  • Bugfix
  • Feature
  • Codebase improvement

Description of the changes in your PR

Save and restore the current media path when the activity is recreated. The restored path is then used to calculate the current item position as usual.

Fixes the following issue(s)

Acknowledgement

@naveensingh
Copy link
Member Author

Test APK: https://github.com/FossifyOrg/Gallery/files/14531089/gallery-5-foss-release.apk.zip

Please just remove the .zip extension from the APK, it's not compressed.

@naveensingh naveensingh merged commit 41a27ac into master Mar 8, 2024
@naveensingh naveensingh deleted the fix_position_glitch branch March 8, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rotating Device Brings You Back To First File
1 participant