[ios] Fixed "no maps" display in downloader.

Added check for downloading countries.
This commit is contained in:
Ilya Grechuhin 2016-04-28 12:28:27 +03:00 committed by Alex Zolotarev
parent 6b77e885ae
commit b20071e620

View file

@ -91,8 +91,8 @@ using namespace storage;
auto const & s = GetFramework().Storage();
if (![self.parentCountryId isEqualToString:@(s.GetRootId().c_str())])
return;
if (self.mode == mwm::DownloaderMode::Available || s.HaveDownloadedCountries() ||
self.dataSource == self.searchDataSource)
if (self.mode == mwm::DownloaderMode::Available || self.dataSource == self.searchDataSource ||
s.HaveDownloadedCountries() || s.IsDownloadInProgress())
{
[self configAllMapsView];
self.tableView.hidden = NO;