[ios] Fixed pedestrian mode activation.

This commit is contained in:
v.mikhaylenko 2015-06-25 15:29:11 +03:00 committed by Alex Zolotarev
parent 688307aee3
commit fd38640009

View file

@ -409,7 +409,8 @@ static BOOL keyboardLoaded = NO;
MapsAppDelegate * delegate = [MapsAppDelegate theApp];
BOOL const isPedestrianRoutingMode = delegate.isPedestrianRoutingMode;
delegate.isPedestrianRoutingMode = !isPedestrianRoutingMode;
[self searchBarDidPressCancelButton:nil];
[self search:cmd];
[self searchBarDidPressCancelButton:nil];
return YES;
}