Merge pull request #2483 from tuskyapp/fix_timeline_refresh_spinner

fix timeline refresh indicator finishing before updates are visible
This commit is contained in:
Konrad Pozniak 2022-04-30 19:05:15 +02:00 committed by GitHub
commit 2a42536b27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ class TimelineFragment :
setupRecyclerView()
adapter.addLoadStateListener { loadState ->
if (loadState.refresh != LoadState.Loading) {
if (loadState.refresh != LoadState.Loading && loadState.source.refresh != LoadState.Loading) {
binding.swipeRefreshLayout.isRefreshing = false
}