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: Don't crash when resuming if the account selector was open #1258

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

nikclayton
Copy link
Contributor

Previous code would crash if the app resumed when the account selector was open, as getPosition would not return the position of a primary item (see mikepenz/MaterialDrawer#2826 for details).

Fix this by directly checking the primary itemAdapter instead of using getPosition.

Previous code would crash if the app resumed when the account selector
was open, as `getPosition` would not return the position of a primary
item (see mikepenz/MaterialDrawer#2826 for
details).

Fix this by directly checking the primary `itemAdapter` instead of
using `getPosition`.
@nikclayton nikclayton merged commit e6dffa2 into pachli:main Feb 4, 2025
27 checks passed
@nikclayton nikclayton deleted the crash-account-selector-resume branch February 4, 2025 12:10
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