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 Tusky sometimes displaying empty tabs #5007

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

connyduck
Copy link
Collaborator

Sometimes a tab is just empty after switching to it, but content appears as soon as you interact with it.
I found that setting a offscreenPageLimit on the ViewPager2 makes that issue go away.
This also has the side effect that the content of more tabs is preloaded, which makes tab switching feel different, one does not see so many loading spinners, content is just there instantly. I'm not sure if that is desireable but I would like to try it out for a while. If it happens to be a problem we can still move tab initialization to when it is actually visible.

@connyduck connyduck requested review from Tak, Lakoja and charlag March 22, 2025 07:51
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.

1 participant