forked from organicmaps/organicmaps
[iOS] rebuild route after changing driving options
This commit is contained in:
parent
f99f2ec23d
commit
f0f3730af5
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue