Skip to content

Commit

Permalink
fix ios camera with cropping not reject on cancel cropping (#954)
Browse files Browse the repository at this point in the history
* fix ios camera with cropping not reject on cancel cropping

* cancel properly from opencropper
  • Loading branch information
novasponge authored and ivpusic committed Mar 20, 2019
1 parent 23ffafa commit bad9617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/src/ImageCropPicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ - (CGRect)imageCropViewControllerCustomMovementRect:
- (void)imageCropViewControllerDidCancelCrop:
(RSKImageCropViewController *)controller {
[self dismissCropper:controller selectionDone:NO completion:[self waitAnimationEnd:^{
if (self.currentSelectionMode == CROPPING) {
if (self.currentSelectionMode == CROPPING || [[self.options objectForKey:@"cropping"] boolValue]) {
self.reject(ERROR_PICKER_CANCEL_KEY, ERROR_PICKER_CANCEL_MSG, nil);
}
}]];
Expand Down

0 comments on commit bad9617

Please sign in to comment.