mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Toggle photo picker switch behaviour and tweak phrases (#5250)
* photo picker: toggle behaviour of switch and adjust phrasing for better 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. * Adjust strings to clearly convey that location loss is a "risk"
This commit is contained in:
parent
8a9aa962bc
commit
a1b6973614
5 changed files with 25 additions and 24 deletions
|
|
@ -153,10 +153,10 @@ public class SettingsFragment extends PreferenceFragmentCompat {
|
|||
return true;
|
||||
});
|
||||
|
||||
Preference getContentPickerPreference = findPreference("getContentPhotoPickerPref");
|
||||
getContentPickerPreference.setOnPreferenceChangeListener(
|
||||
Preference documentBasedPickerPreference = findPreference("openDocumentPhotoPickerPref");
|
||||
documentBasedPickerPreference.setOnPreferenceChangeListener(
|
||||
(preference, newValue) -> {
|
||||
boolean isGetContentPickerTurnedOn = (boolean) newValue;
|
||||
boolean isGetContentPickerTurnedOn = !(boolean) newValue;
|
||||
if (isGetContentPickerTurnedOn) {
|
||||
showLocationLossWarning();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue