[ios] Fixed bottom menu overlapping PP.

This commit is contained in:
Ilya Grechuhin 2016-06-23 16:59:01 +03:00 committed by Vladimir Byko-Ianko
parent 7a6f80b03a
commit f4665b8fb1

View file

@ -468,9 +468,10 @@ typedef NS_ENUM(NSUInteger, MWMBottomMenuViewCell)
- (void)setState:(MWMBottomMenuState)state
{
MWMBottomMenuView * view = (MWMBottomMenuView *)self.view;
if (state != view.state)
BOOL const menuActive = (state == MWMBottomMenuStateActive);
if (menuActive)
[self.controller.view bringSubviewToFront:view];
[self toggleDimBackgroundVisible:state == MWMBottomMenuStateActive];
[self toggleDimBackgroundVisible:menuActive];
if (view.state == MWMBottomMenuStateCompact &&
(state == MWMBottomMenuStatePlanning || state == MWMBottomMenuStateGo ||
state == MWMBottomMenuStateText))