mirror of https://github.com/readrops/Readrops.git
Improve TimelineTab isLoading paging case
This commit is contained in:
parent
eadfb51350
commit
76dfbeff32
|
@ -396,7 +396,7 @@ object TimelineTab : Tab {
|
|||
|
||||
|
||||
fun <T : Any> LazyPagingItems<T>.isLoading(): Boolean {
|
||||
return loadState.refresh is LoadState.Loading
|
||||
return loadState.refresh is LoadState.Loading && itemCount == 0
|
||||
}
|
||||
|
||||
fun <T : Any> LazyPagingItems<T>.isError(): Boolean {
|
||||
|
|
Loading…
Reference in New Issue