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 'map/framework.cpp')
-rw-r--r--map/framework.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 19a1a1970f..30e3d359dc 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -1307,6 +1307,7 @@ void Framework::EnterBackground()
SaveViewport();
m_trafficManager.OnEnterBackground();
+ m_trackingReporter.SetAllowSendingPoints(false);
ms::LatLon const ll = MercatorBounds::ToLatLon(GetViewportCenter());
alohalytics::Stats::Instance().LogEvent("Framework::EnterBackground", {{"zoom", strings::to_string(GetDrawScale())},
@@ -1328,6 +1329,7 @@ void Framework::EnterForeground()
CallDrapeFunction(bind(&df::DrapeEngine::SetTimeInBackground, _1, time));
m_trafficManager.OnEnterForeground();
+ m_trackingReporter.SetAllowSendingPoints(true);
}
bool Framework::GetCurrentPosition(double & lat, double & lon) const