summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlf Watt <alf.watt@mapbox.com>2019-06-06 10:40:06 -0700
committerAlf Watt <alf.watt@mapbox.com>2019-06-06 10:40:06 -0700
commit5d891f5136d960ded174e45326385d658e39a6c2 (patch)
treec3d46733e605ab15b3105acc21dc32967fe4ccba
parent25c59e22094902d8240977fe8287cf2bf3fadb4d (diff)
downloadqtlocation-mapboxgl-upstream/awatt-issue-14867.tar.gz
Explicitly use the shared manager instead of initupstream/awatt-issue-14867
-rw-r--r--platform/ios/src/MGLMapboxEvents.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m
index edf1dffa40..cc7390ac61 100644
--- a/platform/ios/src/MGLMapboxEvents.m
+++ b/platform/ios/src/MGLMapboxEvents.m
@@ -45,7 +45,7 @@ static NSString * const MGLVariableGeofence = @"VariableGeofence";
- (instancetype)init {
self = [super init];
if (self) {
- _eventsManager = [[MMEEventsManager alloc] init];
+ _eventsManager = MMEEventsManager.sharedManager;
_eventsManager.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:MGLMapboxMetricsDebugLoggingEnabled];
_eventsManager.accountType = [[NSUserDefaults standardUserDefaults] integerForKey:MGLMapboxAccountType];
_eventsManager.metricsEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:MGLMapboxMetricsEnabled];