Skip to content

Nearby: Fix map moving by itself after scrolling if a list item has previously been clicked. #6061

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

Merged

Conversation

savsch
Copy link
Contributor

@savsch savsch commented Dec 21, 2024

Fixes #6046

Description (required)

the OnFocusChangeListener for nearby place list items sometimes gets invoked when new items are set, even when the list is hidden, if an item had previously been clicked in it. This in turn causes the onItemClick to be called. This commit adds a check to make sure the list is not hidden when onItemClick is invoked this way.

Tests performed (required)

Tested BetaDebug on Medium Phone AVD with API level 34.

fixes commons-app#6046

the OnFocusChangeListener for nearby place list items sometimes gets invoked when new items aer set, even when the list is hidden, if an item had previously been clicked in it. This in turn causes the onItemClick to be called. This commit adds a check to make sure the list is not hidden when onItemClick is invoked this way.
Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@nicolas-raoul nicolas-raoul merged commit 6a32454 into commons-app:main Dec 21, 2024
1 check passed
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.

Nearby: Map moves by itself after scrolling if a list item has previously been clicked.
2 participants