mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
fix: false message about no comments
This commit is contained in:
parent
85d9cb3a46
commit
8c55f30b02
@ -74,7 +74,7 @@ class CommentsMainFragment : Fragment() {
|
||||
commentPagingAdapter.loadStateFlow.collect {
|
||||
binding.progress.isVisible = it.refresh is LoadState.Loading
|
||||
|
||||
if (it.append is LoadState.NotLoading && it.append.endOfPaginationReached) {
|
||||
if (it.append is LoadState.NotLoading && it.append.endOfPaginationReached && commentPagingAdapter.itemCount == 0) {
|
||||
binding.errorTV.text = getString(R.string.no_comments_available)
|
||||
binding.errorTV.isVisible = true
|
||||
return@collect
|
||||
|
Loading…
x
Reference in New Issue
Block a user