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:
authorTimur Bernikowich <bernikowich@outlook.com>2014-10-27 12:52:44 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:31:41 +0300
commitbd2605dccf2cb290e4ebb1e726835dfd1a1ec8e5 (patch)
treeee5925e2fb5ba68da8c89e1602b93d3f4c247c55 /map/location_state.cpp
parentbe71506fe8df51cfa344bd05fe8c293c49f7f2be (diff)
First launch location fix.
Diffstat (limited to 'map/location_state.cpp')
-rw-r--r--map/location_state.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/map/location_state.cpp b/map/location_state.cpp
index 154745a35f..be87e0c585 100644
--- a/map/location_state.cpp
+++ b/map/location_state.cpp
@@ -436,13 +436,14 @@ void State::RemovePositionChangedListener(int slotID)
void State::InvalidatePosition()
{
- m_afterPendingMode = GetMode();
- if (m_afterPendingMode != UnknownPosition)
+ Mode currentMode = GetMode();
+ if (currentMode > PendingPosition)
{
SetModeInfo(ChangeMode(m_modeInfo, UnknownPosition));
SetModeInfo(ChangeMode(m_modeInfo, PendingPosition));
+ m_afterPendingMode = currentMode;
}
- else
+ else if (currentMode == UnknownPosition)
m_afterPendingMode = Follow;
setIsVisible(false);