Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Telemetry button in modal view controllers (#9027)
Browse files Browse the repository at this point in the history
Fixes #8980.
  • Loading branch information
jmkiley committed May 17, 2017
1 parent 30b9191 commit 4f90d7a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1999,9 +1999,10 @@ - (void)presentTelemetryAlertController
}];
[alertController addAction:participateAction];

[self.window.rootViewController presentViewController:alertController
animated:YES
completion:NULL];
UIViewController *viewController = [self.window.rootViewController mgl_topMostViewController];
[viewController presentViewController:alertController
animated:YES
completion:NULL];
}

#pragma mark - Properties -
Expand Down

0 comments on commit 4f90d7a

Please sign in to comment.