forked from organicmaps/organicmaps
[iOS] don't show crown when in routing mode
https://jira.mail.ru/browse/MAPSME-11851
This commit is contained in:
parent
7bb814cd62
commit
c200e87437
1 changed files with 5 additions and 0 deletions
|
@ -263,6 +263,7 @@ extern NSString * const kAlohalyticsTapEventKey;
|
|||
auto nm = self.navigationManager;
|
||||
[nm onRoutePrepare];
|
||||
[nm onRoutePointsUpdated];
|
||||
self.crownButton.hidden = YES;
|
||||
}
|
||||
|
||||
- (void)onRouteRebuild
|
||||
|
@ -271,12 +272,14 @@ extern NSString * const kAlohalyticsTapEventKey;
|
|||
self.searchManager.state = MWMSearchManagerStateHidden;
|
||||
|
||||
[self.navigationManager onRoutePlanning];
|
||||
self.crownButton.hidden = YES;
|
||||
}
|
||||
|
||||
- (void)onRouteReady:(BOOL)hasWarnings
|
||||
{
|
||||
self.searchManager.state = MWMSearchManagerStateHidden;
|
||||
[self.navigationManager onRouteReady:hasWarnings];
|
||||
self.crownButton.hidden = YES;
|
||||
}
|
||||
|
||||
- (void)onRouteStart
|
||||
|
@ -287,6 +290,7 @@ extern NSString * const kAlohalyticsTapEventKey;
|
|||
self.disableStandbyOnRouteFollowing = YES;
|
||||
self.trafficButtonHidden = YES;
|
||||
[self.navigationManager onRouteStart];
|
||||
self.crownButton.hidden = YES;
|
||||
}
|
||||
|
||||
- (void)onRouteStop
|
||||
|
@ -296,6 +300,7 @@ extern NSString * const kAlohalyticsTapEventKey;
|
|||
[self.navigationManager onRouteStop];
|
||||
self.disableStandbyOnRouteFollowing = NO;
|
||||
self.trafficButtonHidden = NO;
|
||||
self.crownButton.hidden = NO;
|
||||
}
|
||||
|
||||
- (void)onCrown:(UIButton *)sender {
|
||||
|
|
Loading…
Add table
Reference in a new issue