diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2019-05-28 11:17:52 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-28 12:28:02 +0300 |
commit | d7bae8db7be0caef823e04cdd980ac7db23ee193 (patch) | |
tree | c2925d2f26d5e3c11ae4e152f09a8b5ee0ce74cb /iphone | |
parent | b3618bd893977410ad87b2865d8e9144404dbd8c (diff) |
Review fixes
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm index 7c6004d08e..61f3a8d45f 100644 --- a/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm +++ b/iphone/Maps/Classes/Widgets/MWMMapDownloadDialog.mm @@ -41,7 +41,7 @@ BOOL canAutoDownload(storage::CountryId const & countryId) return !platform::migrate::NeedMigrate(); } -promo::DownloaderPromoBanner getPromoBanner(std::string const & mwmId) +promo::DownloaderPromo::Banner getPromoBanner(std::string const & mwmId) { auto const & purchase = GetFramework().GetPurchase(); bool const hasRemoveAdsSubscription = purchase && purchase->IsSubscriptionActive(SubscriptionType::RemoveAds); @@ -77,7 +77,7 @@ using namespace storage; { CountryId m_countryId; CountryId m_autoDownloadCountryId; - promo::DownloaderPromoBanner m_promoBanner; + promo::DownloaderPromo::Banner m_promoBanner; } + (instancetype)dialogForController:(MapViewController *)controller @@ -287,7 +287,7 @@ using namespace storage; { m_promoBanner = getPromoBanner(m_countryId); // TODO: implement other banner types. - if (m_promoBanner.m_type == promo::DownloaderPromoType::Megafon && self.bannerView.hidden) + if (m_promoBanner.m_type == promo::DownloaderPromo::Type::Megafon && self.bannerView.hidden) { [self layoutIfNeeded]; self.bannerVisibleConstraint.priority = UILayoutPriorityDefaultHigh; |