Skip to content

Commit

Permalink
Update PagerIndicator.java
Browse files Browse the repository at this point in the history
Repair delays indicator.
  • Loading branch information
audiebant committed Apr 16, 2015
1 parent 91165cf commit 5880308
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,6 @@ private void setItemAsSelected(int position){

@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
if(mItemCount == 0){
return;
}
int n = position % mItemCount;
setItemAsSelected(n - 1);
}

public IndicatorVisibility getIndicatorVisibility(){
Expand All @@ -457,7 +452,11 @@ public IndicatorVisibility getIndicatorVisibility(){

@Override
public void onPageSelected(int position) {

if(mItemCount == 0){
return;
}
int n = position % mItemCount;
setItemAsSelected(n - 1);
}
@Override
public void onPageScrollStateChanged(int state) {
Expand Down

0 comments on commit 5880308

Please sign in to comment.