Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix swipe-refresh spinner showing forever when refreshing AccountActivity #4345

Merged
merged 2 commits into from
Mar 30, 2024

Conversation

connyduck
Copy link
Collaborator

The flow must emit every update even if the values are the same, so use SharedFlow instead of StateFlow.

Regression from #4337 cc @Goooler

@connyduck connyduck requested review from Tak and charlag March 29, 2024 11:35
@connyduck connyduck merged commit 5343766 into develop Mar 30, 2024
3 checks passed
@connyduck connyduck deleted the fix-stuck-swipe-refresh branch March 30, 2024 10:31
@cbeyls
Copy link
Contributor

cbeyls commented Apr 1, 2024

A better fix would be to set isRefreshing to true first in the coroutine that sets isRefreshing to false at the end.
This would also allow to properly show the refresh indicator after a configuration change if loading is still in progress.

@connyduck
Copy link
Collaborator Author

Yes, I just wanted a quick fix to get rid of the regression. There are probably more improvements possible in the account view, I want to have a look soon. PRs also welcome!

Goooler added a commit to Goooler/Tusky that referenced this pull request Apr 2, 2024
@Goooler
Copy link
Contributor

Goooler commented Apr 2, 2024

Fixing in #4353.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants