From 7a3061eaa965640871cb488a9663b1164e67a905 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Thu, 17 Mar 2016 15:53:59 +0300 Subject: [PATCH] [ios] Fixed downloader navigation bar title. --- .../MWMBaseMapDownloaderViewController.mm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/MapDownloader/MWMBaseMapDownloaderViewController.mm b/iphone/Maps/Classes/MapDownloader/MWMBaseMapDownloaderViewController.mm index 065e191f7c..ba0da9dc8e 100644 --- a/iphone/Maps/Classes/MapDownloader/MWMBaseMapDownloaderViewController.mm +++ b/iphone/Maps/Classes/MapDownloader/MWMBaseMapDownloaderViewController.mm @@ -93,7 +93,16 @@ using namespace storage; - (void)configNavBar { - self.title = self.dataSource.isParentRoot ? L(@"download_maps") : L(@(self.parentCountryId.c_str())); + if (self.dataSource.isParentRoot) + { + self.title = L(@"download_maps"); + } + else + { + NodeAttrs nodeAttrs; + GetFramework().Storage().GetNodeAttrs(self.parentCountryId, nodeAttrs); + self.title = @(nodeAttrs.m_nodeLocalName.c_str()); + } } - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration