forked from organicmaps/organicmaps
[MAPSME-5018,MAPSME-5019] [ios] Fixed navigation info view subscription to location updates.
This commit is contained in:
parent
8b747b18d0
commit
e854669ee7
1 changed files with 5 additions and 1 deletions
|
@ -464,7 +464,10 @@ BOOL defaultOrientation(CGSize const & size)
|
|||
_state = state;
|
||||
switch (state)
|
||||
{
|
||||
case MWMNavigationInfoViewStateHidden: self.isVisible = NO; break;
|
||||
case MWMNavigationInfoViewStateHidden:
|
||||
self.isVisible = NO;
|
||||
[MWMLocationManager removeObserver:self];
|
||||
break;
|
||||
case MWMNavigationInfoViewStateNavigation:
|
||||
self.isVisible = YES;
|
||||
if ([MWMRouter type] == MWMRouterTypePedestrian)
|
||||
|
@ -476,6 +479,7 @@ BOOL defaultOrientation(CGSize const & size)
|
|||
self.isVisible = YES;
|
||||
[self setStreetNameVisible:NO];
|
||||
[self setTurnsViewVisible:NO];
|
||||
[MWMLocationManager addObserver:self];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue