Fix bug where page indicator animation repeats itself.

Bug: 31501865
Change-Id: I0df77859b82b60fd0e50023e0f5690961850cf6c
This commit is contained in:
Jon Miranda 2016-09-15 12:31:28 -07:00
parent 46133612b4
commit 3f9d6278e3
1 changed files with 0 additions and 5 deletions

View 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);
}
}