Skip to content

Commit

Permalink
Add fix for iOS file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
knyazz authored Apr 25, 2017
1 parent 184a6eb commit 236e374
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ios/CDVThemeableBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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)]) {
Expand Down

0 comments on commit 236e374

Please sign in to comment.