OSDN Git Service

Fix bug where page indicator animation repeats itself.
authorJon Miranda <jonmiranda@google.com>
Thu, 15 Sep 2016 19:31:28 +0000 (12:31 -0700)
committerJon Miranda <jonmiranda@google.com>
Thu, 15 Sep 2016 19:40:18 +0000 (12:40 -0700)
Bug: 31501865
Change-Id: I0df77859b82b60fd0e50023e0f5690961850cf6c

src/com/android/launcher3/pageindicators/PageIndicatorDots.java

index 747c21b..fb9d2f7 100644 (file)
@@ -226,11 +226,6 @@ public class PageIndicatorDots extends PageIndicator {
     public void setActiveMarker(int activePage) {
         if (mActivePage != activePage) {
             mActivePage = activePage;
-
-            // Simulate a scroll change
-            int totalScroll = mNumPages - 1;
-            int currentScroll = mIsRtl ? (totalScroll - mActivePage) : mActivePage;
-            setScroll(currentScroll, totalScroll);
         }
     }