diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index af26c1bf97..82e2659ce7 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -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]; } diff --git a/map/framework.cpp b/map/framework.cpp index d5b98a1f3f..63e9b6cdd3 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -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) const