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
1 changed files with 1 additions and 1 deletions

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
}