forked from organicmaps/organicmaps
[new downloader] Storage::GetChildrenInGroups(). iOS build fix.
This commit is contained in:
parent
c12ffc6e64
commit
7198b60d65
2 changed files with 4 additions and 4 deletions
|
@ -316,8 +316,8 @@ extern NSString * const kSearchStateKey = @"SearchStateKey";
|
|||
{
|
||||
using namespace storage;
|
||||
auto & s = GetFramework().Storage();
|
||||
TCountriesVec downloadedCountries;
|
||||
s.GetDownloadedChildren(s.GetRootId(), downloadedCountries);
|
||||
TCountriesVec downloadedCountries, availCountries;
|
||||
s.GetChildrenInGroups(s.GetRootId(), downloadedCountries, availCountries);
|
||||
BOOL const haveMap = (downloadedCountries.size() != 0);
|
||||
return haveMap ? self.tabbedController : self.downloadController;
|
||||
}
|
||||
|
|
|
@ -55,8 +55,8 @@ using namespace storage;
|
|||
self.downloadedCoutryIds = nil;
|
||||
self.downloadedCountriesSection = NSNotFound;
|
||||
auto const & s = GetFramework().Storage();
|
||||
TCountriesVec downloadedCoutryIds;
|
||||
s.GetDownloadedChildren(self.parentCountryId, downloadedCoutryIds);
|
||||
TCountriesVec downloadedCoutryIds, availableCountryIds;
|
||||
s.GetChildrenInGroups(self.parentCountryId, downloadedCoutryIds, availableCountryIds);
|
||||
NSMutableArray<NSString *> * nsDownloadedCoutryIds = [@[] mutableCopy];
|
||||
for (auto const & countryId : downloadedCoutryIds)
|
||||
[nsDownloadedCoutryIds addObject:@(countryId.c_str())];
|
||||
|
|
Loading…
Add table
Reference in a new issue