From 7e3d66f7e5441fedb5d5bfe1e4c98b2725f129fc Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Fri, 21 Jul 2017 14:14:37 +0300 Subject: [PATCH] [cherry] [release-74-fix] [MAPSME-5088] [ios] Lowered map download dialog (z-index). --- iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm index a03b46002c..844f7f2c8c 100644 --- a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm +++ b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm @@ -1,6 +1,7 @@ #import "MWMMapDownloadDialog.h" #import "CLLocation+Mercator.h" #import "MWMAlertViewController.h" +#import "MWMBottomMenuViewController.h" #import "MWMCircularProgress.h" #import "MWMCommon.h" #import "MWMFrameworkListener.h" @@ -175,7 +176,12 @@ using namespace storage; { if (self.superview) return; - [self.controller.view addSubview:self]; + auto superview = self.controller.view; + auto bottomMenuView = [MWMBottomMenuViewController controller].view; + if (bottomMenuView) + [superview insertSubview:self belowSubview:bottomMenuView]; + else + [superview addSubview:self]; [MWMFrameworkListener addObserver:self]; }