refugerestrooms-android
refugerestrooms-android copied to clipboard
Allow current location option like in webapp
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.
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