forked from organicmaps/organicmaps
Framework::GetGuideInfo doesn't check any country status conditions.
This commit is contained in:
parent
c5465383da
commit
566681bd04
2 changed files with 3 additions and 3 deletions
|
@ -334,8 +334,9 @@ void InitLocalizedStrings()
|
|||
|
||||
- (void) OnCountryChange: (storage::TIndex const &)index
|
||||
{
|
||||
Framework const & f = GetFramework();
|
||||
guides::GuideInfo guide;
|
||||
if (GetFramework().GetGuideInfo(index, guide))
|
||||
if (f.GetCountryStatus(index) == storage::EOnDisk && f.GetGuideInfo(index, guide))
|
||||
[self ShowNotificationWithGuideInfo:guide];
|
||||
}
|
||||
|
||||
|
|
|
@ -1688,8 +1688,7 @@ void Framework::UpdateSavedDataVersion()
|
|||
|
||||
bool Framework::GetGuideInfo(storage::TIndex const & index, guides::GuideInfo & info) const
|
||||
{
|
||||
return (GetCountryStatus(index) == storage::EOnDisk &&
|
||||
m_storage.GetGuideManager().GetGuideInfo(m_storage.CountryFileName(index), info));
|
||||
return m_storage.GetGuideManager().GetGuideInfo(m_storage.CountryFileName(index), info);
|
||||
}
|
||||
|
||||
void Framework::GetGuidesInfosWithDownloadedMaps(vector<guides::GuideInfo> & guides) const
|
||||
|
|
Loading…
Add table
Reference in a new issue