mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Fix indentation inside delegate
This commit is contained in:
parent
048cd0ad4f
commit
d2fb6d5184
@ -127,11 +127,11 @@ NSString* callbackId = nil;
|
|||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation FileOpener2 (UIDocumentInteractionControllerDelegate)
|
@implementation FileOpener2 (UIDocumentInteractionControllerDelegate)
|
||||||
- (void)documentInteractionControllerDidDismissOpenInMenu:(UIDocumentInteractionController *)controller {
|
- (void)documentInteractionControllerDidDismissOpenInMenu:(UIDocumentInteractionController *)controller {
|
||||||
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
|
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller {
|
- (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller {
|
||||||
UIViewController *presentingViewController = self.viewController;
|
UIViewController *presentingViewController = self.viewController;
|
||||||
if (presentingViewController.view.window != [UIApplication sharedApplication].keyWindow){
|
if (presentingViewController.view.window != [UIApplication sharedApplication].keyWindow){
|
||||||
presentingViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
|
presentingViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
|
||||||
@ -142,5 +142,6 @@ NSString* callbackId = nil;
|
|||||||
}
|
}
|
||||||
|
|
||||||
return presentingViewController;
|
return presentingViewController;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue
Block a user