Apply same fix for open with preview functionality

This commit is contained in:
Aleksi Lahikainen 2020-09-08 16:18:33 +03:00
parent 68392bdaf2
commit 64c15579ed

View File

@ -118,6 +118,7 @@ NSString* callbackId = nil;
nil
];
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsDictionary:jsonObj];
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
}
});
}
@ -129,6 +130,10 @@ NSString* callbackId = nil;
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
}
- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller {
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
}
- (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller {
UIViewController *presentingViewController = self.viewController;