Skip to content

Fix edit button shown when image has no location #6029

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 14, 2024

Changed the commons.filepicker.UploadableFile's hasLocation method to use the existing ImageCoordinates class for detecting the presence of geolocation in an image's exif

Description (required)

Fixes #5908

Changed the hasLocation method (added in commit f7164d0) to use the existing ImageCoordinates class (which has a more exhaustive logic for the same task) to resolve the inconsistency reported in #5908.

More context: #5908 (comment)

Tests performed (required)

Tested BetaDebug on Medium Phone with API level 34.

Changed the commons.filepicker.UploadableFile's hasLocation method to use the existing ImageCoordinates class for detecting the presence of geolocation in an image's exif
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.

Thanks! :-)

@nicolas-raoul nicolas-raoul merged commit 235e8cd into commons-app:main Dec 14, 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.

[Bug]: Edit location button shown even when image does not have location
2 participants