diff options
author | Zoia Pribytkova <niakris90@gmail.com> | 2019-04-26 10:25:49 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-08 16:49:33 +0300 |
commit | f0f3730af5569dc4a3b2f2ea9deea8e3555d3517 (patch) | |
tree | 1f9835c726c907c13757e5f61f3089dc0fbc53e4 /iphone | |
parent | f99f2ec23d77ed2cc1e657a31b0ddab1e3d7647a (diff) |
[iOS] rebuild route after changing driving options
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/MapViewController.mm | 2 | ||||
-rw-r--r-- | iphone/Maps/Core/Routing/MWMRouter.mm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 9ee318c36f..ba33d313e5 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -514,7 +514,7 @@ BOOL gIsFirstMyPositionMode = YES; - (void)openDrivingOptions { - UIStoryboard *sb = [UIStoryboard instance:MWMStoryboardDrivingOptions];// [UIStoryboard storyboardWithName:@"DrivingOptions" bundle:nil]; + UIStoryboard *sb = [UIStoryboard instance:MWMStoryboardDrivingOptions]; UIViewController * vc = [sb instantiateInitialViewController]; [self.navigationController pushViewController:vc animated:YES]; } diff --git a/iphone/Maps/Core/Routing/MWMRouter.mm b/iphone/Maps/Core/Routing/MWMRouter.mm index c6fca3b510..c23cdf6bc8 100644 --- a/iphone/Maps/Core/Routing/MWMRouter.mm +++ b/iphone/Maps/Core/Routing/MWMRouter.mm @@ -785,7 +785,7 @@ void logPointEvent(MWMRoutePoint * point, NSString * eventType) + (void)updateRoute { MWMRoutingOptions *newOptions = [MWMRoutingOptions new]; - if ((self.isRouteBuilt || !self.IsRouteValid) + if ((self.isRoutingActive && !self.isOnRoute) && ![newOptions isEqual:[self router].routingOptions]) { [self rebuildWithBestRouter:YES]; } |