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
path: root/map
diff options
context:
space:
mode:
authorSergey Yershov <syershov@maps.me>2016-12-14 17:41:41 +0300
committerSergey Yershov <syershov@maps.me>2016-12-14 17:41:41 +0300
commitee087914bb9426825635d8ef7d8bf5feebc80a79 (patch)
tree461ffdcc7aa6778600d6b04720f99ed0079465a5 /map
parentc290c9ee9ee9a0368d35fecc5ef30f63d7c4554b (diff)
Disable sending point in background
Diffstat (limited to 'map')
-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