/**
* 获取 Hibernate FirstResult
*/
public int getFirstResult(){
int firstResult = (getPageNo() - 1) * getPageSize();
if (firstResult >= getCount()) {
firstResult = 0;
}
return firstResult;
}
As long as incoming pageNo * pageSize greater than the total number of pieces, to press pageNo = 1; get record;
2, APP end has been accumulated pageNo, increasing the value passed; no conditions 1 in accordance with pageNo =, empty pages of data; causing increasingly loaded;
@Override public void onResume() { this.articlePresenter.getPageManager().init(); super.onResume(); }
solve