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

Toggle photo picker switch behaviour and tweak phrases #5250

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

sivaraam
Copy link
Member

Description (required)

The enable state used to trigger the GET_CONTENT intent. Alter the flow such that the GET_CONTENT intent is triggered when switch is disabled. Adjust default value and other parts of code naming to reflect this.

The existing phrasing had a lot of tech jargon in it which could result in the non-technical users being confused. Tweak the phrasing to avoid such phrases.

The documentation in the website could also use some follow up improvements.

Note: This addresses follow up comments in MR #5227 and does not handle #5242 (that's to be looked into separately).

Tests performed (required)

OnePlus Nord running Android 11

Screenshots (for UI changes only)

Preference page Dialog shown when turning off
Screenshot_2023-06-26-01-08-46-39_d5db3f3edc380047609fe9c266f7c566 Screenshot_2023-06-26-01-08-49-62_d5db3f3edc380047609fe9c266f7c566

cc @nicolas-raoul @Rishavgupta12345 @kartikaykaushik14

…er UX

The enable state used to trigger the GET_CONTENT intent. Alter the flow
such that the GET_CONTENT intent is triggered when switch is disabled.
Adjust default value and other parts of code naming to reflect this.

The existing phrasing had a lot of tech jargon in it which could
result in the non-technical users being confused. Tweak the phrasing
to avoid such phrases.

The documentation in the website could also use some follow up
improvements.
@codecov
Copy link

codecov bot commented Jun 25, 2023

Codecov Report

Merging #5250 (2c089f1) into master (95b4c3b) will increase coverage by 0.09%.
The diff coverage is 44.44%.

@@             Coverage Diff              @@
##             master    #5250      +/-   ##
============================================
+ Coverage     59.86%   59.96%   +0.09%     
  Complexity     2846     2846              
============================================
  Files           344      344              
  Lines         17221    17221              
  Branches       1635     1635              
============================================
+ Hits          10310    10326      +16     
+ Misses         6013     5993      -20     
- Partials        898      902       +4     
Impacted Files Coverage Δ
.../commons/contributions/ContributionController.java 56.25% <0.00%> (ø)
...ava/fr/free/nrw/commons/filepicker/FilePicker.java 40.88% <50.00%> (ø)
...fr/free/nrw/commons/settings/SettingsFragment.java 55.60% <66.66%> (ø)

... and 9 files with indirect coverage changes

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.

Otherwise good to merge :-)

<string name="get_content_photo_picker_explanation">Disable if your pictures get uploaded without location</string>
<string name="location_loss_warning">Please make sure that this new Android picker does not strip location from your pictures.</string>
<string name="open_document_photo_picker_title">Use document based photo picker</string>
<string name="open_document_photo_picker_explanation">The new Android photo picker has the potential to strip location information. Enable if you seem to be using it.</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"has the potential to" sounds positive. How about conveying the same in a way that implies it is a bad thing?
Example:
"The new Android photo picker risks losing location information"

Same for the string below.

<string name="location_loss_warning">Please make sure that this new Android picker does not strip location from your pictures.</string>
<string name="open_document_photo_picker_title">Use document based photo picker</string>
<string name="open_document_photo_picker_explanation">The new Android photo picker has the potential to strip location information. Enable if you seem to be using it.</string>
<string name="location_loss_warning">Turning this off could trigger the new Android photo picker. It has potential to strip location information.\n\nTap on \'Read more\' for more information.</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If my understanding is correct, toggling the switch would definitely trigger the new Android photo picker right?

If yes, we should modify - "could" to "would" in the following line - Turning this off "could" trigger the new Android photo picker.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toggling the switch would definitely trigger the new Android photo picker right?

Not always. It will be triggered only when the GET_CONTENT takeover is enabled on a device (and as of now, we do not know how to detect its status).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh then it makes sense!

@sivaraam
Copy link
Member Author

@nicolas-raoul Thanks for the review. I've tweaked the phrasing as mentioned. Do check and merge this if it looks good 🙂

@nicolas-raoul nicolas-raoul merged commit a1b6973 into master Jul 25, 2023
3 of 4 checks passed
@nicolas-raoul
Copy link
Member

Sorry for the delay!

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.

4 participants