[ios] Fixed menu restore Go state.

This commit is contained in:
Ilya Grechuhin 2015-10-26 17:15:02 +03:00 committed by v.mikhaylenko
parent 4a65beb615
commit d1e61d1a83

View file

@ -394,14 +394,14 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell)
- (IBAction)searchButtonTouchUpInside:(UIButton *)sender
{
self.state = MWMBottomMenuStateInactive;
self.state = self.restoreState;
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"search"];
self.controller.controlsManager.searchHidden = self.searchIsActive;
}
- (IBAction)bookmarksButtonTouchUpInside:(UIButton *)sender
{
self.state = MWMBottomMenuStateInactive;
self.state = self.restoreState;
[Alohalytics logEvent:kAlohalyticsTapEventKey withValue:@"bookmarks"];
BookmarksRootVC * const vc = [[BookmarksRootVC alloc] init];
[self.controller.navigationController pushViewController:vc animated:YES];