fix timeline refresh spinner finishing before updates are visible
This commit is contained in:
parent
9a8dfaa744
commit
7fd54e3b4f
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ class TimelineFragment :
|
||||||
setupRecyclerView()
|
setupRecyclerView()
|
||||||
|
|
||||||
adapter.addLoadStateListener { loadState ->
|
adapter.addLoadStateListener { loadState ->
|
||||||
if (loadState.refresh != LoadState.Loading) {
|
if (loadState.refresh != LoadState.Loading && loadState.source.refresh != LoadState.Loading) {
|
||||||
binding.swipeRefreshLayout.isRefreshing = false
|
binding.swipeRefreshLayout.isRefreshing = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue