File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ - (void)launchGMImagePicker:(bool)allow_video title:(NSString *)title message:(N
83
83
picker.colsInPortrait = 4 ;
84
84
picker.colsInLandscape = 6 ;
85
85
picker.minimumInteritemSpacing = 2.0 ;
86
- self.imagePicker = picker;
87
86
88
87
if (!disable_popover) {
89
88
picker.modalPresentationStyle = UIModalPresentationPopover;
@@ -283,8 +282,8 @@ -(void)assetsPickerControllerDidCancel:(GMImagePickerController *)picker
283
282
284
283
- (void ) closeImagePicker : (CDVInvokedUrlCommand *)command {
285
284
bool boolMessage = FALSE ;
286
- if (self.imagePicker && self. imagePicker . presentingViewController ) {
287
- [self .imagePicker.presentingViewController dismissViewControllerAnimated: YES completion: nil ];
285
+ if (self.viewController != nil ) {
286
+ [self .viewController dismissViewControllerAnimated: YES completion: nil ];
288
287
boolMessage = TRUE ;
289
288
}
290
289
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK messageAsBool: boolMessage];
You can’t perform that action at this time.
0 commit comments