mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 10:58:16 +00:00
fixed a bug when using openCamera with [multiple: true]
related issue: https://github.com/ivpusic/react-native-image-crop-picker/issues/353
This commit is contained in:
parent
ae0abe8bcd
commit
63e6f71db1
@ -644,6 +644,7 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi
|
||||
startCropping(activity, uri);
|
||||
} else {
|
||||
try {
|
||||
resultCollector.setWaitCount(1);
|
||||
resultCollector.notifySuccess(getSelection(activity, uri, true));
|
||||
} catch (Exception ex) {
|
||||
resultCollector.notifyProblem(E_NO_IMAGE_DATA_FOUND, ex.getMessage());
|
||||
@ -657,6 +658,7 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi
|
||||
final Uri resultUri = UCrop.getOutput(data);
|
||||
if (resultUri != null) {
|
||||
try {
|
||||
resultCollector.setWaitCount(1);
|
||||
resultCollector.notifySuccess(getSelection(activity, resultUri, false));
|
||||
} catch (Exception ex) {
|
||||
resultCollector.notifyProblem(E_NO_IMAGE_DATA_FOUND, ex.getMessage());
|
||||
|
Loading…
x
Reference in New Issue
Block a user