From e79ccc47ffab6ff8240bc8e5d50ef822bcdb9a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=93=D1=80=D0=B5=D1=87=D1=83?= =?UTF-8?q?=D1=85=D0=B8=D0=BD?= Date: Fri, 13 Nov 2015 22:43:48 +0300 Subject: [PATCH] [ios] Fixed menu state restore. --- .../MapViewControls/BottomMenu/MWMBottomMenuViewController.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm index 3eab31e7fe..974d0e98b2 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/BottomMenu/MWMBottomMenuViewController.mm @@ -341,13 +341,13 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell) - (void)menuActionDownloadMaps { - self.state = MWMBottomMenuStateInactive; + self.state = self.restoreState; [self.delegate actionDownloadMaps]; } - (void)menuActionOpenSettings { - self.state = MWMBottomMenuStateInactive; + self.state = self.restoreState; [Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"settingsAndMore"]; SettingsAndMoreVC * const vc = [[SettingsAndMoreVC alloc] initWithStyle:UITableViewStyleGrouped]; [self.controller.navigationController pushViewController:vc animated:YES];