mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Potential fix for get_content picker being used in first run
The initial state of the 'openDocumentPhotoPickerPref' seems to be incorrect during a fresh install on some devices. Try to ensure we always use the proper initial state by propagating the default to the preference access code. This hopefully fixes #5274
This commit is contained in:
parent
f71ef4aa1d
commit
4494d0bdf7
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ public class ContributionController {
|
||||||
*/
|
*/
|
||||||
private void initiateGalleryUpload(final Activity activity, final boolean allowMultipleUploads) {
|
private void initiateGalleryUpload(final Activity activity, final boolean allowMultipleUploads) {
|
||||||
setPickerConfiguration(activity, allowMultipleUploads);
|
setPickerConfiguration(activity, allowMultipleUploads);
|
||||||
boolean openDocumentIntentPreferred = defaultKvStore.getBoolean("openDocumentPhotoPickerPref");
|
boolean openDocumentIntentPreferred = defaultKvStore.getBoolean("openDocumentPhotoPickerPref", true);
|
||||||
FilePicker.openGallery(activity, 0, openDocumentIntentPreferred);
|
FilePicker.openGallery(activity, 0, openDocumentIntentPreferred);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue