forked from organicmaps/organicmaps-tmp
[iOS] Warning message fix, when locations services are disabled
This commit is contained in:
parent
70996d8cdc
commit
ae717351e3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue