forked from organicmaps/organicmaps
[ios] Fixed bottom menu overlapping PP.
This commit is contained in:
parent
7a6f80b03a
commit
f4665b8fb1
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue