Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'iphone/Maps/Statistics/Statistics.mm')
-rw-r--r--iphone/Maps/Statistics/Statistics.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/iphone/Maps/Statistics/Statistics.mm b/iphone/Maps/Statistics/Statistics.mm
index 6e7f8a3665..b2311b3f49 100644
--- a/iphone/Maps/Statistics/Statistics.mm
+++ b/iphone/Maps/Statistics/Statistics.mm
@@ -2,6 +2,8 @@
#import "Flurry.h"
#import "AppInfo.h"
+#import "3party/Alohalytics/src/alohalytics_objc.h"
+
#include "platform/settings.hpp"
static constexpr char const * kStatisticsEnabledSettingsKey = "StatisticsEnabled";
@@ -71,6 +73,10 @@ static constexpr char const * kStatisticsEnabledSettingsKey = "StatisticsEnabled
- (void)setEnabled:(BOOL)enabled
{
Settings::Set(kStatisticsEnabledSettingsKey, static_cast<bool>(enabled));
+ if (enabled)
+ [Alohalytics enable];
+ else
+ [Alohalytics disable];
}
+ (instancetype)instance