Skip to content

Commit

Permalink
* Fix for openPicker not working when app targets Android 13 on Andr…
Browse files Browse the repository at this point in the history
…oid (ivpusic#1852)

13 device
  • Loading branch information
dtumonasingh authored and fmorau committed Feb 24, 2023
1 parent 51a4111 commit 35482b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ public void openPicker(final ReadableMap options, final Promise promise) {
setConfiguration(options);
resultCollector.setup(promise, multiple);

permissionsCheck(activity, promise, Collections.singletonList(Manifest.permission.WRITE_EXTERNAL_STORAGE), new Callable<Void>() {
permissionsCheck(activity, promise, Collections.singletonList(Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU ? Manifest.permission.WRITE_EXTERNAL_STORAGE : Manifest.permission.READ_MEDIA_IMAGES), new Callable<Void>() {
@Override
public Void call() {
initiatePicker(activity);
Expand Down

0 comments on commit 35482b5

Please sign in to comment.