[iOS] Warning message fix, when locations services are disabled

This commit is contained in:
Kirill Zhdanovich 2013-11-20 15:52:34 +03:00 committed by Alex Zolotarev
parent 70996d8cdc
commit ae717351e3

View file

@ -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
{