apps-android-wikipedia
apps-android-wikipedia copied to clipboard
Gallery Image Rotation Bug Fix
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