-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"Remove location" button for new uploads #5262
Conversation
…ocation picker from upload wizard.
…nt. Linked to empty onClickRemoveLocation method.
…. Linked to empty removeLocationFromPicture() method.
private void removeLocationFromPicture() { | ||
// Set the camera position to (0, 0) | ||
cameraPosition = new CameraPosition.Builder() | ||
.target(new LatLng(0, 0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work so far! As you wrote, removing location altogether is needed here. 🙂
Great! |
Thanks, I think I will skip it then. It's proving a bit more complicated than I thought. What should be done about the checks failed? Maybe I'm reading it wrong, but it seems an issue with gradle, is there something I can do about that? |
About unit tests, this appears to be the problematic part:
To me it seems related to the present pull request... Would you mind checking? :-) |
Strange... maybe try in a clean environment such as a new VM? |
Or how about blindly trying to fix the code of testOnClickModifyLocation and testOnStyleLoaded, and pushing to this branch every time you want to try? CI will happily run the tests for you. |
I think I'll do that. I did try cloning the project to a different pc but ran into the same issue. |
Do not hesitate to push commits as many time as needed. Thanks a lot! :-) |
I'm sorry but is there someone I can ask for help? I think I've gotten stuck for good. I don't know much about testing and I'm having trouble understanding why and how my changes affect those two tests in particular. |
Hi Paco, Unfortunately it is difficult for potential contributors to see your call for help here, so I created an issue about that. By the way, ideally the location should also be removed from the EXIF of the JPG file itself. Does that happen here? The app already has code to remove various EXIF field from the JPG file for privacy purposes, that can probably be either reused or taken as a code example. Thanks! :-) |
Hi Paco, Tomer has kindly fixed the unit tests. :-) Now the "only" thing left is to remove the latitude/longitude from the EXIF itself. https://commons.wikimedia.org/wiki/File:Car_carrier_loading_Maybach_in_Tokyo.jpg Steps to reproduce:
As I mentioned above, the app already has code to remove various EXIF field from the JPG file for privacy purposes, that can probably be either reused or taken as a code example. If you have no time to do it, please let us know and someone else may be able to finish the work. :-) |
In case Paco is not available, I am willing to fix(removing the lat/long) it. |
Tomer (who fixed the unit tests) has already expressed interest in fixing this issue, but Priyank's help would be very welcome if both Paco and Tomer are unavailable. @paco-arana If you are interested in fixing the EXIF issue. please let us know within 24 hours from now, otherwise Tomer can work on it. If no news from Tomer either within 48 hours from now, Priyank can work on it. Thanks all! |
@nicolas-raoul - I can work on it, but I don't mind giving it to @shankarpriyank. |
I guess issue has been resolved. So, this PR should be closed. |
@rohit9625 I don't see a "Remove location" button in main, do you? |
You are right Mr. @nicolas-raoul |
Fixes #5247
What changes did you make and why?
The
Media Details
step has a location editor, but no way to remove location for privacy reasons or just because it is not that relevant to the picture. A few changes were made to give the user the option to remove this information.I will revise the last point once I understand the model better so that it actually displays as "No coordinates provided", hence why I've marked this PR as a draft.
Tests performed
Tested ProdDebug on virtual device and Xiaomi Redmi 9 and with API level 30.
Screenshots