Skip to content

Commit

Permalink
* Fix for openPicker not working when app targets Android 13 on Andro…
Browse files Browse the repository at this point in the history
…id (ivpusic#1852)
  • Loading branch information
sctfcm committed Oct 9, 2023
1 parent b299f09 commit fec1cf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,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 fec1cf9

Please sign in to comment.