-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Enhancing Multi-Upload Functionality for Consistent Depiction Categorization #5700
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
Enhancing Multi-Upload Functionality for Consistent Depiction Categorization #5700
Conversation
Enhance the depiction consistency of a multi-upload by ensuring that it corresponds to a single place
@@ -810,4 +810,6 @@ Upload your first media by tapping on the add button.</string> | |||
<item quantity="one">%d image selected</item> | |||
<item quantity="other">%d images selected</item> | |||
</plurals> | |||
<string name="multiple_files_depiction">Please remember that all images in a multi-upload should belong to the same category/depiction. If the images do not share depictions and categories, please perform several uploads.</string> | |||
<string name="multiple_files_depiction_header">Note about multi-uploads</string> |
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.
Would you mind adding a "Do not show again" checkbox on that dialog?
Thanks a lot and sorry for the delay! :-)
app/src/main/java/fr/free/nrw/commons/upload/UploadActivity.java
Outdated
Show resolved
Hide resolved
Otherwise it is working great, I have been using this branch for a few days with no other issues. :-) |
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.
It looks like the issues I had mentioned are all solved, great job! :-)
I continue testing for a few days.
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.
Working great, thanks! 🙂
Description
Fixes #5633
This pull request enhances the multi-upload functionality to ensure consistent categorization and depiction of media files. The following improvements have been implemented:
-AlertDialog Implementation: An AlertDialog has been added to prompt users uploading multiple media files, emphasizing the importance of assigning the same category to all pictures within the multi-upload. This serves to prevent mislabeling and ensures uniformity in depiction categories across all uploaded media.
-Unified Place Recognition: When a nearby place is detected, instead of querying if a single picture within the multi-upload refers to it, we now inquire whether the entire upload pertains to the identified location. Upon affirmative confirmation, the place attribute is updated for all pictures within the multi-upload.
-Efficient Location Handling: In scenarios where the entire multi-upload is confirmed to reference a specific location, redundant location handling for individual photos is eliminated. Subsequent photos within the same upload retain the same location attribution, optimizing efficiency without compromising accuracy.
-Modularized receiveSharedItems() Method in UploadActivity.java: The receiveSharedItems() method has been modularized to enhance code readability and maintainability.
Tests performed
Tested ProdDebug on Pixel 3 with API level 34
Screenshot