[ios] Don't force the attribution button tint color to update
This commit is contained in:
@@ -5,6 +5,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
|
||||
## 3.6.1
|
||||
|
||||
* Reduced the size of the dynamic framework by optimizing symbol visibility. ([#7604](https://github.com/mapbox/mapbox-gl-native/pull/7604))
|
||||
* Fixed an issue where the attribution button would have its custom tint color reset when the map view received a tint color change notification, such as when an alert controller was presented. ([#9598](https://github.com/mapbox/mapbox-gl-native/pull/9598))
|
||||
|
||||
## 3.6.0 - June 29, 2017
|
||||
|
||||
|
||||
@@ -1144,8 +1144,10 @@ public:
|
||||
|
||||
- (void)updateTintColorForView:(UIView *)view
|
||||
{
|
||||
// stop at recursing container & annotation views (#8522)
|
||||
if ([view isEqual:self.annotationContainerView]) return;
|
||||
// Don't update:
|
||||
// - annotation views
|
||||
// - attribution button (handled automatically)
|
||||
if ([view isEqual:self.annotationContainerView] || [view isEqual:self.attributionButton]) return;
|
||||
|
||||
if ([view respondsToSelector:@selector(setTintColor:)]) view.tintColor = self.tintColor;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user