Skip to content

Commit

Permalink
Fix load-more failure
Browse files Browse the repository at this point in the history
Solve load more failure when list items are too few to fill the whole view.
  • Loading branch information
Brandon-Lin committed May 22, 2014
1 parent ecf78ee commit afa64b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/me/maxwin/view/XListView.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ public boolean onTouchEvent(MotionEvent ev) {
}
}
resetHeaderHeight();
} else if (getLastVisiblePosition() == mTotalItemCount - 1) {
}

if (getLastVisiblePosition() == mTotalItemCount - 1) {
// invoke load more.
if (mEnablePullLoad
&& mFooterView.getBottomMargin() > PULL_LOAD_MORE_DELTA
Expand Down

0 comments on commit afa64b4

Please sign in to comment.