Improve TimelineTab isLoading paging case

This commit is contained in:
Shinokuni 2024-07-13 15:03:43 +02:00
parent eadfb51350
commit 76dfbeff32
1 changed files with 1 additions and 1 deletions

View File

@ -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 {