From ae717351e35d7aec75c8939a9668255effff83e9 Mon Sep 17 00:00:00 2001 From: Kirill Zhdanovich Date: Wed, 20 Nov 2013 15:52:34 +0300 Subject: [PATCH] [iOS] Warning message fix, when locations services are disabled --- iphone/Maps/Platform/LocationManager.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Platform/LocationManager.mm b/iphone/Maps/Platform/LocationManager.mm index 06c5fad6ea..bc7caf1f1c 100644 --- a/iphone/Maps/Platform/LocationManager.mm +++ b/iphone/Maps/Platform/LocationManager.mm @@ -43,6 +43,7 @@ { if (!m_isStarted) { + //YES if location services are enabled; NO if they are not. if ([CLLocationManager locationServicesEnabled]) { CLAuthorizationStatus authStatus = kCLAuthorizationStatusNotDetermined; @@ -67,7 +68,7 @@ } } else - [observer onLocationError:location::ENotSupported]; + [observer onLocationError:location::EDenied]; } else {