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/Classes/Location/MWMLocationManager.mm')
-rw-r--r--iphone/Maps/Classes/Location/MWMLocationManager.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/Location/MWMLocationManager.mm b/iphone/Maps/Classes/Location/MWMLocationManager.mm
index 1a9badb41c..1664abf3fb 100644
--- a/iphone/Maps/Classes/Location/MWMLocationManager.mm
+++ b/iphone/Maps/Classes/Location/MWMLocationManager.mm
@@ -294,7 +294,6 @@ void setPermissionRequested()
if (self.lastLocationInfo == locationInfo)
return;
self.lastLocationInfo = locationInfo;
- self.lastLocationStatus = location::TLocationError::ENoError;
[self.predictor reset:gpsInfo];
}
@@ -453,6 +452,8 @@ void setPermissionRequested()
// So we filter out such events completely.
if (location.horizontalAccuracy < 0.)
return;
+
+ self.lastLocationStatus = location::TLocationError::ENoError;
[self processLocationUpdate:location];
[[Statistics instance] logLocation:location];
}