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

Allow current location option like in webapp #84

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

Conversation

ericjiliangli
Copy link

This pull request adds location autofill functionality to the input fields for street, city, and state in the 'Add a Restroom' form. Users can now click a button to automatically populate the address fields with their current location, making it easier and more convenient to add restroom information.

Changes include:

  • Added a mCurrentLocation variable inside AddBathroomFragment to keep track of the latest location of the user.
  • Implemented getLocationAddress() method to retrieve the location address using Geocoder based on latitude and longitude.
  • Updated onPageFinished() method to add a custom click event listener to the 'Autofill Location' button.

This update streamlines the restroom submission process for users, making it easier to contribute valuable information to the platform.

Please review the changes and provide feedback. If everything looks good, please feel free to merge this pull request.

@hissingpanda
Copy link
Member

Thanks so much for this, people have been asking for a minute. I should have time to test it out next week and build another release for the play store

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