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

Commit

Permalink
[ios] CP #14529 - Check for valid superview to avoid crash on iOS 9 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Rex authored Apr 30, 2019
1 parent a51e385 commit 76c0e58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions platform/ios/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
* Fix a bug that wrong position of attribution dialog after rotation. ([#14185](https://github.com/mapbox/mapbox-gl-native/pull/14185))
* Fixed a bug with jittery callout views when using sprite-based annotations. ([#14445](https://github.com/mapbox/mapbox-gl-native/pull/14445))
* Improved `MGLLocationManager` optional protocol properties briding to Swift. ([#14477](https://github.com/mapbox/mapbox-gl-native/pull/14477))
* Fixed a layout constraints crash on iOS 9 when a view is removed from its superview. ([#14529](https://github.com/mapbox/mapbox-gl-native/pull/14529))

## 4.10.0 - April 17, 2019

Expand Down
5 changes: 4 additions & 1 deletion platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,10 @@ - (void)didMoveToWindow
- (void)didMoveToSuperview
{
[self validateDisplayLink];
[self installConstraints];
if (self.superview)
{
[self installConstraints];
}
[super didMoveToSuperview];
}

Expand Down

0 comments on commit 76c0e58

Please sign in to comment.