Merge pull request #2483 from tuskyapp/fix_timeline_refresh_spinner
fix timeline refresh indicator finishing before updates are visible
This commit is contained in:
commit
2a42536b27
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…
Add table
Reference in a new issue