From 236e3743813878303bb427b0072e17743857d092 Mon Sep 17 00:00:00 2001 From: knyazz Date: Tue, 25 Apr 2017 21:14:47 +0300 Subject: [PATCH] Add fix for iOS file upload https://github.com/initialxy/cordova-plugin-themeablebrowser/pull/83 --- src/ios/CDVThemeableBrowser.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ios/CDVThemeableBrowser.m b/src/ios/CDVThemeableBrowser.m index 0d36e6b..c9abeda 100644 --- a/src/ios/CDVThemeableBrowser.m +++ b/src/ios/CDVThemeableBrowser.m @@ -1152,12 +1152,6 @@ - (void)showToolBar:(BOOL)show : (NSString *) toolbarPosition } } -- (void) dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion { - if ( self.presentedViewController) { - [super dismissViewControllerAnimated:flag completion:completion]; - } -} - - (void)viewDidLoad { [super viewDidLoad]; @@ -1610,6 +1604,12 @@ - (id)init @implementation CDVThemeableBrowserNavigationController : UINavigationController +- (void) dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion { + if ( self.presentedViewController) { + [super dismissViewControllerAnimated:flag completion:completion]; + } +} + - (BOOL)shouldAutorotate { if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(shouldAutorotate)]) {