Limit initial load size

pull/156/head
M66B 6 years ago
parent c5a3a91221
commit 2784ea389c

@ -93,6 +93,7 @@ public class ViewModelMessages extends ViewModel {
case FOLDER: case FOLDER:
PagedList.Config configFolder = new PagedList.Config.Builder() PagedList.Config configFolder = new PagedList.Config.Builder()
.setInitialLoadSizeHint(LOCAL_PAGE_SIZE)
.setPageSize(LOCAL_PAGE_SIZE) .setPageSize(LOCAL_PAGE_SIZE)
.setPrefetchDistance(REMOTE_PAGE_SIZE) .setPrefetchDistance(REMOTE_PAGE_SIZE)
.build(); .build();

Loading…
Cancel
Save