Skip to content

Commit

Permalink
Fix popSystemNavigator (#6691)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield authored and chinmaygarde committed Oct 29, 2018
1 parent 2b2fbf0 commit 91a019c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,10 @@ - (void)popSystemNavigator {
UIViewController* viewController = [UIApplication sharedApplication].keyWindow.rootViewController;
if ([viewController isKindOfClass:[UINavigationController class]]) {
[((UINavigationController*)viewController) popViewControllerAnimated:NO];
[_engine.get() setViewController:nil];
} else {
auto engineViewController = static_cast<UIViewController*>([_engine.get() viewController]);
if (engineViewController != viewController) {
[engineViewController dismissViewControllerAnimated:NO completion:nil];
[_engine.get() setViewController:nil];
}
}
}
Expand Down

0 comments on commit 91a019c

Please sign in to comment.