Skip to content

Commit

Permalink
Merge branch 'main' into twn
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener authored May 23, 2022
2 parents 9e871ba + 372478c commit a1fedf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Wikipedia/Code/WMFAppViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1895,6 +1895,12 @@ - (nullable UINavigationController *)currentNavigationController {
while (presented.presentedViewController != nil) {
presented = presented.presentedViewController;
}

// This next block fixes a weird bug: https://phabricator.wikimedia.org/T305112#7936784
if ([NSStringFromClass([presented class]) isEqualToString: @"DDParsecCollectionViewController"] && presented.presentingViewController != nil) {
presented = presented.presentingViewController;
}

if ([presented isKindOfClass:[UINavigationController class]]) {
return (UINavigationController *)presented;
} else {
Expand Down

0 comments on commit a1fedf7

Please sign in to comment.