Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2016-09-13 12:23:59 +0300
committerIlya Grechuhin <i.grechuhin@gmail.com>2016-09-13 12:24:24 +0300
commitc607dc85a6a2d27f844a161c83342cf3ba2965ac (patch)
treed8927215761e015367c1983d7ec5d43dbb3ddc38 /iphone
parent9089f284e014722f1961ad9b5a8c39c48fde9ec4 (diff)
[ios] Fixed download badge.
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm
index dacf19c4b0..d51c2e4a75 100644
--- a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm
+++ b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuView.mm
@@ -287,6 +287,7 @@ CGFloat constexpr kTimeWidthRegular = 128;
break;
case MWMBottomMenuStatePlanning:
case MWMBottomMenuStateGo:
+ self.downloadBadge.hidden = YES;
self.menuButton.hidden = YES;
self.bookmarksButton.hidden = YES;
self.p2pButton.hidden = YES;
@@ -295,6 +296,7 @@ CGFloat constexpr kTimeWidthRegular = 128;
break;
case MWMBottomMenuStateRouting:
case MWMBottomMenuStateRoutingExpanded:
+ self.downloadBadge.hidden = YES;
self.bookmarksButton.hidden = YES;
self.routingView.hidden = NO;
self.routingAdditionalView.hidden = NO;
@@ -549,7 +551,8 @@ CGFloat constexpr kTimeWidthRegular = 128;
- (void)updateBadge
{
- if (self.state == MWMBottomMenuStateRouting || self.state == MWMBottomMenuStateRoutingExpanded)
+ if (self.state == MWMBottomMenuStateRouting || self.state == MWMBottomMenuStateRoutingExpanded ||
+ self.state == MWMBottomMenuStatePlanning || self.state == MWMBottomMenuStateGo)
{
self.downloadBadge.hidden = YES;
return;
@@ -582,7 +585,6 @@ CGFloat constexpr kTimeWidthRegular = 128;
{
if (MapsAppDelegate.theApp.routingPlaneMode == MWMRoutingPlaneModeNone)
_leftBound = 0.0;
- [self updateBadge];
self.p2pButton.hidden = self.searchButton.hidden = self.bookmarksButton.hidden = NO;
self.menuButton.hidden = NO;
self.layoutDuration =
@@ -660,6 +662,7 @@ CGFloat constexpr kTimeWidthRegular = 128;
if (updateMenuButton)
[self updateMenuButtonFromState:_state toState:state];
_state = state;
+ [self updateBadge];
}
- (void)setLeftBound:(CGFloat)leftBound