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

Gallery Image Rotation Bug Fix

Open Williamrai opened this issue 4 months ago • 0 comments

What does this do?

The odd image behavior when you rotate the screen was due to disabling the activity recreation for GalleryActivity, which prevented ViewPager2 from properly handling configuration changes. The work around for this is posted on this thread, briefly setting the ViewPager2 to a previous position and then back to the current one, effectively resets the state and lands on the correct position.

Phabricator: https://phabricator.wikimedia.org/T392920

Williamrai avatar May 30 '25 18:05 Williamrai