Skip to content

Commit

Permalink
Merge pull request ivpusic#380 from deathemperor/master
Browse files Browse the repository at this point in the history
fixed a bug when using openCamera with [multiple: true]
  • Loading branch information
ivpusic authored Jul 20, 2017
2 parents 391465e + 63e6f71 commit 18d5403
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ private void cameraPickerResult(Activity activity, final int requestCode, final
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());
Expand All @@ -657,6 +658,7 @@ private void croppingResult(Activity activity, final int requestCode, final int
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());
Expand Down

0 comments on commit 18d5403

Please sign in to comment.