File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -282,14 +282,13 @@ -(void)assetsPickerControllerDidCancel:(GMImagePickerController *)picker
282282}
283283
284284- (void ) closeImagePicker : (CDVInvokedUrlCommand *)command {
285- if (self.imagePicker && self.imagePicker .presentingViewController ) {
286- [self .imagePicker.presentingViewController dismissViewControllerAnimated: YES completion: nil ];
287- CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsBool: TRUE ];
285+ bool boolMessage = FALSE ;
286+ if (self.imagePicker && self.imagePicker .presentingViewController ) {
287+ [self .imagePicker.presentingViewController dismissViewControllerAnimated: YES completion: nil ];
288+ boolMessage = TRUE ;
289+ }
290+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsBool: boolMessage];
288291 [self .commandDelegate sendPluginResult: pluginResult callbackId: command.callbackId];
289- } else {
290- CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsBool: FALSE ];
291- [self .commandDelegate sendPluginResult: pluginResult callbackId: command.callbackId];
292- }
293292}
294293
295294@end
You can’t perform that action at this time.
0 commit comments