Skip to content

Commit

Permalink
Update circle indicators when the last page was removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Jan 26, 2012
1 parent 8aab6c9 commit dca87e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/src/com/viewpagerindicator/CirclePageIndicator.java
Expand Up @@ -208,6 +208,11 @@ protected void onDraw(Canvas canvas) {
return;
}

if (mCurrentPage >= count) {
setCurrentItem(count - 1);
return;
}

int longSize;
int longPaddingBefore;
int longPaddingAfter;
Expand Down

0 comments on commit dca87e4

Please sign in to comment.