1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-31 11:31:40 +00:00

Limit initial load size

This commit is contained in:
M66B 2019-06-07 09:53:29 +02:00
parent c5a3a91221
commit 2784ea389c

View file

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