From 75d185f946881c4c6c2ff4660225ee62b0fd3d7c Mon Sep 17 00:00:00 2001 From: Aleksey Belouosv Date: Wed, 16 Oct 2019 19:22:28 +0300 Subject: [PATCH] [iOS] show map download dialog below other controls --- iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm index 88bac210aa..6b81c38fb6 100644 --- a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm +++ b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm @@ -184,12 +184,8 @@ using namespace storage; - (void)addToSuperview { if (self.superview) return; - auto superview = self.controller.view; - auto bottomMenuView = [MWMBottomMenuViewController controller].view; - if (bottomMenuView) - [superview insertSubview:self belowSubview:bottomMenuView]; - else - [superview addSubview:self]; + MapViewController *controller = self.controller; + [controller.view insertSubview:self aboveSubview:controller.mapView]; [MWMFrameworkListener addObserver:self]; }