VEINHORN / ScrollGalleryView

:bridge_at_night: Android image gallery with bottom scroll view
MIT License
531 stars 157 forks source link

fixed setCurrentItem method to also adjust the thumbnails #104

Open MaAllma opened 2 years ago

MaAllma commented 2 years ago

The original setCurrentItem method only adjusted the main image and the thumbnails always started with the first one. I added a scroll(thumbnailsContainer.getChildAt(i)) and attached it to the lifecycle of the main view so it would be executed after the main view was built.