diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2017-07-24 13:59:47 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2017-07-24 14:00:40 +0300 |
commit | a0555c613e14292b078717aa52f721820c0a1eb1 (patch) | |
tree | 6e0309a62f54550c93a66a414a4b87ae3d0783bb | |
parent | 8c1f01ce77f19a07a4bc393f1f0c1a8a7e38a648 (diff) |
[release-74-fix] Review fixes.
-rw-r--r-- | iphone/Maps/UI/PlacePage/PlacePageLayout/Content/ButtonCell/MWMPlacePageButtonCell.mm | 6 | ||||
-rw-r--r-- | iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/ButtonCell/MWMPlacePageButtonCell.mm b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/ButtonCell/MWMPlacePageButtonCell.mm index 236c8325ea..457f234cf8 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/ButtonCell/MWMPlacePageButtonCell.mm +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/ButtonCell/MWMPlacePageButtonCell.mm @@ -29,11 +29,7 @@ [self.titleButton setTitleColor:[UIColor linkBlue] forState:UIControlStateNormal]; } -- (void)setEnabled:(BOOL)enabled -{ - // Hotel description button is always enabled. - self.titleButton.enabled = enabled || (self.rowType == place_page::ButtonsRows::HotelDescription); -} +- (void)setEnabled:(BOOL)enabled { self.titleButton.enabled = enabled; } - (BOOL)isEnabled { return self.titleButton.isEnabled; } - (void)configWithTitle:(NSString *)title diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm b/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm index b70e8076c4..ce0d95b0ea 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/MWMPlacePageLayout.mm @@ -393,7 +393,8 @@ map<MetainfoRows, Class> const kMetaInfoCells = { case ButtonsRows::Other: NSAssert(false, @"Incorrect row"); } }]; - c.enabled = self.buttonsSectionEnabled; + // Hotel description button is always enabled. + c.enabled = self.buttonsSectionEnabled || (row == ButtonsRows::HotelDescription); return c; } case Sections::Viator: |