Skip to content

Commit fbffd23

Browse files
authored
[revert] Fix for openPicker not working when app targets Android 13 (#1973)
1 parent de6fa15 commit fbffd23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public void openPicker(final ReadableMap options, final Promise promise) {
403403
setConfiguration(options);
404404
resultCollector.setup(promise, multiple);
405405

406-
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>() {
406+
permissionsCheck(activity, promise, Collections.singletonList(Manifest.permission.WRITE_EXTERNAL_STORAGE), new Callable<Void>() {
407407
@Override
408408
public Void call() {
409409
initiatePicker(activity);
@@ -938,4 +938,4 @@ private static WritableMap getCroppedRectMap(Intent data) {
938938

939939
return map;
940940
}
941-
}
941+
}

0 commit comments

Comments
 (0)