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: Make all listeners null by default #320

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

romainpiel
Copy link
Contributor

@romainpiel romainpiel commented May 23, 2023

Prior to this change, all click listeners and onMapLoaded were set to an empty lambda by default. This would cause issues where for example the map is clickable by default without doing anything. When talkback is on, it reads "double click to activate".

This change fixes that by making all listeners null by default.


Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #38 🦕

@google-cla
Copy link

google-cla bot commented May 23, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@romainpiel romainpiel force-pushed the romainpiel/nullable-listeners branch from 467a599 to 7721994 Compare May 23, 2023 08:16
@romainpiel romainpiel changed the title Make all listeners null by default fix: Make all listeners null by default May 23, 2023
@romainpiel romainpiel marked this pull request as ready for review May 23, 2023 08:22
@kikoso kikoso closed this Jul 7, 2023
@kikoso kikoso reopened this Jul 7, 2023
Prior to this change, all click listeners and onMapLoaded were set to an empty lambda by default. This would cause issues where for example the map is clickable by default without doing anything. When talkback is on, it reads "double click to activate".

This change fixes that by making all listeners null by default.
@romainpiel romainpiel force-pushed the romainpiel/nullable-listeners branch from 7721994 to 82b3225 Compare July 19, 2023 07:51
@wangela wangela requested review from kikoso and wangela July 19, 2023 08:19
@wangela
Copy link
Member

wangela commented Sep 13, 2023

Thank you for this fix, @romainpiel! Marking this a chore so it gets bundled with a couple of other changes in a planned release.

@wangela wangela merged commit dc743a2 into googlemaps:main Sep 13, 2023
7 of 8 checks passed
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 2.14.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Suggestion: don't set default map click listeners other than OnMapClickListener
4 participants