[ios] LocationManager does not notify on -start:

when already has the observer
This commit is contained in:
Igor Khmurets 2014-06-17 17:38:24 +03:00 committed by Alex Zolotarev
parent 2706452642
commit 9c89c7c524

View file

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