Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue #50 which caused a Force Close when mCurrentPage was equa…

…l to bounds.size().
  • Loading branch information...
commit 7d328eeda639314c99b53783c27e1245e5698890 1 parent 7f57253
@vdesmet93 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/src/com/viewpagerindicator/TitlePageIndicator.java
View
2  library/src/com/viewpagerindicator/TitlePageIndicator.java
@@ -323,7 +323,7 @@ protected void onDraw(Canvas canvas) {
ArrayList<RectF> bounds = calculateAllBounds(mPaintText);
//Make sure we're on a page that still exists
- if (mCurrentPage >= bounds.size()) {
+ if (mCurrentPage > bounds.size()) { // vdesmet93: removed the equal-sign, should prevent FC. Should fix issue #50
setCurrentItem(bounds.size()-1);
}
Please sign in to comment.
Something went wrong with that request. Please try again.