Fix ScrollLayoutManager.setCurrentIndex(int)

This commit is contained in:
seven332 committed 2016-02-22 23:58:47 +08:00
1 parent be09ad6c27
commit 9a94dbf2ef
1 file changed
+1 -1
@@ -748,7 +748,6 @@ public class ScrollLayoutManager extends GalleryView.LayoutManager {
if (mPages.isEmpty()) {
mIndex = index;
} else {
mIndex = index;
// Fix the index page
GalleryPageView targetPage = null;
for (GalleryPageView page : mPages) {
@@ -771,6 +770,7 @@ public class ScrollLayoutManager extends GalleryView.LayoutManager {
// Request fill
mGalleryView.requestFill();
} else {
mIndex = index;
// Cancel all animations
cancelAllAnimations();
// Remove all view