We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0eaa46 commit 5721d28Copy full SHA for 5721d28
src/ios/SOSPicker.m
@@ -282,12 +282,13 @@ -(void)assetsPickerControllerDidCancel:(GMImagePickerController *)picker
282
}
283
284
- (void) closeImagePicker:(CDVInvokedUrlCommand *)command {
285
+ if (self.imagePicker.presentingViewController) {
286
CDVPluginResult* pluginResult = nil;
287
NSArray* emptyArray = [NSArray array];
288
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsArray:emptyArray];
289
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
290
[self.imagePicker.presentingViewController dismissViewControllerAnimated:YES completion:nil];
291
+ }
292
293
-
294
@end
0 commit comments