diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2017-04-25 16:41:57 +0300 |
---|---|---|
committer | Sergey Yershov <syershov@maps.me> | 2017-04-25 17:21:29 +0300 |
commit | 5c7da75f43cf78be0cd2aa5cb35106e1de49e561 (patch) | |
tree | 46b899c2dcfc91bbed20c9b6dec4fa86268211d6 /iphone/Maps/UI/PlacePage/MWMPlacePageData.mm | |
parent | 2d42335714061f176f3b077bbe3666150bedd038 (diff) |
[release-73-search-banners] [ios] Updated search banners cache logic.beta-781
Diffstat (limited to 'iphone/Maps/UI/PlacePage/MWMPlacePageData.mm')
-rw-r--r-- | iphone/Maps/UI/PlacePage/MWMPlacePageData.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm b/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm index 4e9ed0cd63..487386bd54 100644 --- a/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm +++ b/iphone/Maps/UI/PlacePage/MWMPlacePageData.mm @@ -104,6 +104,8 @@ using namespace place_page; __weak auto wSelf = self; [[MWMBannersCache cache] getWithCoreBanners:banner_helpers::MatchPriorityBanners(m_info.GetBanners()) + cacheOnly:NO + loadNew:YES completion:^(id<MWMBanner> ad, BOOL isAsync) { __strong auto self = wSelf; if (!self) @@ -113,8 +115,7 @@ using namespace place_page; self->m_previewRows.push_back(PreviewRows::Banner); if (isAsync) self.bannerIsReadyCallback(); - } - cacheOnly:NO]; + }]; } } |