mirror of https://github.com/readrops/Readrops.git
Improve paging behaviour in TimelineTab
This commit is contained in:
parent
7be074f759
commit
fdf6c4f5c1
|
@ -63,8 +63,9 @@ class TimelineScreenModel(
|
|||
it.copy(
|
||||
itemState = Pager(
|
||||
config = PagingConfig(
|
||||
pageSize = 10,
|
||||
prefetchDistance = 10
|
||||
initialLoadSize = 50,
|
||||
pageSize = 50,
|
||||
prefetchDistance = 15
|
||||
),
|
||||
pagingSourceFactory = {
|
||||
database.itemDao().selectAll(query)
|
||||
|
|
|
@ -396,7 +396,7 @@ object TimelineTab : Tab {
|
|||
|
||||
|
||||
fun <T : Any> LazyPagingItems<T>.isLoading(): Boolean {
|
||||
return loadState.append is LoadState.Loading //|| loadState.refresh is LoadState.Loading
|
||||
return loadState.refresh is LoadState.Loading
|
||||
}
|
||||
|
||||
fun <T : Any> LazyPagingItems<T>.isError(): Boolean {
|
||||
|
|
|
@ -11,7 +11,7 @@ coil = "2.4.0"
|
|||
coroutines = "1.8.0"
|
||||
room = "2.6.1"
|
||||
koin-bom = "3.5.0"
|
||||
paging = "3.2.1"
|
||||
paging = "3.3.0"
|
||||
okhttp = "4.11.0"
|
||||
retrofit = "2.9.0"
|
||||
about_libraries = "11.2.2"
|
||||
|
|
Loading…
Reference in New Issue