From 03031e5716b1acbe85a627ee32a9b6b2f01d511d Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Sat, 29 Apr 2023 19:34:29 +0200 Subject: [PATCH] Set initialLoadSize = pageSize (#3598) The pageSize is large enough that there's no need for the default 3 x pageSize initialLoadSize value, and this improves performance. Fixes https://github.com/tuskyapp/Tusky/issues/3578 --- .../tusky/components/notifications/NotificationsRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsRepository.kt b/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsRepository.kt index b933a9a3..4bec1aa3 100644 --- a/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsRepository.kt +++ b/app/src/main/java/com/keylesspalace/tusky/components/notifications/NotificationsRepository.kt @@ -53,7 +53,7 @@ class NotificationsRepository @Inject constructor( } return Pager( - config = PagingConfig(pageSize = pageSize), + config = PagingConfig(pageSize = pageSize, initialLoadSize = pageSize), initialKey = initialKey, pagingSourceFactory = factory!! ).flow