forked from organicmaps/organicmaps
[ios] LocationManager does not notify on -start:
when already has the observer
This commit is contained in:
parent
2706452642
commit
9c89c7c524
1 changed files with 2 additions and 1 deletions
|
@ -67,8 +67,9 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
BOOL updateLocation = ![m_observers containsObject:observer];
|
||||
[m_observers addObject:observer];
|
||||
if ([self lastLocationIsValid])
|
||||
if ([self lastLocationIsValid] && updateLocation)
|
||||
{
|
||||
// pass last location known location when new observer is attached
|
||||
// (default CLLocationManagerDelegate behaviour)
|
||||
|
|
Loading…
Add table
Reference in a new issue