Skip to content

Commit

Permalink
Potential fix for get_content picker being used in first run
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sivaraam committed Sep 4, 2023
1 parent f71ef4a commit 4494d0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public void initiateCustomGalleryPickWithPermission(final Activity activity) {
*/
private void initiateGalleryUpload(final Activity activity, final boolean allowMultipleUploads) {
setPickerConfiguration(activity, allowMultipleUploads);
boolean openDocumentIntentPreferred = defaultKvStore.getBoolean("openDocumentPhotoPickerPref");
boolean openDocumentIntentPreferred = defaultKvStore.getBoolean("openDocumentPhotoPickerPref", true);
FilePicker.openGallery(activity, 0, openDocumentIntentPreferred);
}

Expand Down

0 comments on commit 4494d0b

Please sign in to comment.