forked from organicmaps/organicmaps
[ios] Fixed routing planning on iPad.
This commit is contained in:
parent
c3fd830a88
commit
541f75f0d9
1 changed files with 21 additions and 13 deletions
|
@ -166,19 +166,27 @@ extern NSString * const kAlohalyticsTapEventKey;
|
|||
else if (m == MWMRoutingPlaneModePlacePage)
|
||||
{
|
||||
if (state == MWMSearchManagerStateHidden)
|
||||
return;
|
||||
[UIView animateWithDuration:kDefaultAnimationDuration
|
||||
animations:^{
|
||||
self.navigationManager.routePreview.alpha = 0.;
|
||||
}
|
||||
completion:^(BOOL finished) {
|
||||
MapsAppDelegate.theApp.routingPlaneMode = MWMRoutingPlaneModeNone;
|
||||
self.navigationManager.routePreview.alpha = 1.;
|
||||
[self.navigationManager.routePreview removeFromSuperview];
|
||||
[[MWMRouter router] stop];
|
||||
self.navigationManager.state = MWMNavigationDashboardStateHidden;
|
||||
self.menuController.p2pButton.selected = NO;
|
||||
}];
|
||||
{
|
||||
[UIView animateWithDuration:kDefaultAnimationDuration
|
||||
animations:^{
|
||||
self.navigationManager.routePreview.alpha = 1.;
|
||||
}];
|
||||
}
|
||||
else
|
||||
{
|
||||
[UIView animateWithDuration:kDefaultAnimationDuration
|
||||
animations:^{
|
||||
self.navigationManager.routePreview.alpha = 0.;
|
||||
}
|
||||
completion:^(BOOL finished) {
|
||||
MapsAppDelegate.theApp.routingPlaneMode = MWMRoutingPlaneModeNone;
|
||||
self.navigationManager.routePreview.alpha = 1.;
|
||||
[self.navigationManager.routePreview removeFromSuperview];
|
||||
[[MWMRouter router] stop];
|
||||
self.navigationManager.state = MWMNavigationDashboardStateHidden;
|
||||
self.menuController.p2pButton.selected = NO;
|
||||
}];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue