forked from organicmaps/organicmaps
[new downloader][ios] Fixed TODO.
This commit is contained in:
parent
519d1a39e1
commit
e183512ade
1 changed files with 2 additions and 4 deletions
|
@ -75,15 +75,13 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
// TODO (igrechuhin) Replace with invalid country id
|
||||
m_countryId = storage::TCountryId();
|
||||
m_countryId = kInvalidCountryId;
|
||||
auto const & countryInfoGetter = f.CountryInfoGetter();
|
||||
LocationManager * locationManager = [MapsAppDelegate theApp].m_locationManager;
|
||||
if (locationManager.lastLocationIsValid)
|
||||
m_countryId = countryInfoGetter.GetRegionCountryId(locationManager.lastLocation.mercator);
|
||||
|
||||
// TODO (igrechuhin) Replace with real check
|
||||
if (!m_countryId.empty())
|
||||
if (m_countryId != kInvalidCountryId)
|
||||
{
|
||||
storage::NodeAttrs attrs;
|
||||
s.GetNodeAttrs(m_countryId, attrs);
|
||||
|
|
Loading…
Add table
Reference in a new issue