mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
Correct activity request code
Summary: Change activity request code to IMAGE_PICKER_REQUEST in currentActivity.startActivityForResult(chooserIntent, IMAGE_PICKER_REQUEST); Closes https://github.com/facebook/react-native/pull/7347 Differential Revision: D3257586 fb-gh-sync-id: fc92fb0bd3a66371fac22234b8a8b693a23fbf24 fbshipit-source-id: fc92fb0bd3a66371fac22234b8a8b693a23fbf24
This commit is contained in:
parent
bf8b5499bb
commit
60ee25c554
@ -376,7 +376,7 @@ public class ImagePickerModule extends ReactContextBaseJavaModule implements Act
|
||||
|
||||
final Intent chooserIntent = Intent.createChooser(galleryIntent, "Pick an image");
|
||||
|
||||
currentActivity.startActivityForResult(chooserIntent, PICK_IMAGE);
|
||||
currentActivity.startActivityForResult(chooserIntent, IMAGE_PICKER_REQUEST);
|
||||
} catch (Exception e) {
|
||||
mPickerPromise.reject(E_FAILED_TO_SHOW_PICKER, e);
|
||||
mPickerPromise = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user