bug with paging fixed

This commit is contained in:
Gavriil Sitnikov 2016-04-14 03:30:44 +03:00
parent 14ee4c8fee
commit 7258bafc2a
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class SimplePagingProvider<T> extends ItemsProvider<T> {
public List<T> getLoadedItems() {
final List<T> result = new ArrayList<>();
if (maxLoadedPage != null) {
for (int i = 0; i < maxLoadedPage; i++) {
for (int i = 0; i <= maxLoadedPage; i++) {
final List<T> page = loadedPages.get(i);
if (page != null) {
result.addAll(page);