Fix indentation inside delegate

This commit is contained in:
Aleksi Lahikainen 2020-09-08 15:30:05 +03:00
parent 048cd0ad4f
commit d2fb6d5184

View File

@ -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