Fix bug where page indicator animation repeats itself.
Bug: 31501865 Change-Id: I0df77859b82b60fd0e50023e0f5690961850cf6c
This commit is contained in:
parent
46133612b4
commit
3f9d6278e3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue