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

Improve permission recyclerview performance #392

Conversation

connyduck
Copy link
Contributor

The problem here was that the RecyclerView was set to wrap_content so it would become super large and create views for each item. On apps with a lot of permissions this causes significant lag.
I fixed it by making the whole fragment contain only the RecyclerView with match_parent and putting the remaining content inside the RecyclerView as well. I decided to go with a ConcatAdapter because that was the easiest way to do it, but of course there are other possibilities to get all the content into the RecyclerViwe as well.

@connyduck connyduck closed this Feb 6, 2024
@connyduck connyduck deleted the fix_permissions_fragment_performance branch February 6, 2024 15:23
@Jean-BaptisteC
Copy link
Contributor

Why did you have closed PR?

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.

2 participants