forked from organicmaps/organicmaps
Merge pull request #3944 from igrechuhin/MAPSME-2056
[ios] Fixed routing planning on iPad.
This commit is contained in:
commit
6ec54a4002
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