[iOS] Show megafon banner only when online

This commit is contained in:
Aleksey Belouosv 2019-02-22 17:36:30 +03:00 committed by Aleksey Belousov
parent e4effc2072
commit 32d4b9574b

View file

@ -29,6 +29,9 @@
auto const position = f.GetCurrentPosition();
if (!position)
return NO;
if (GetPlatform().ConnectionStatus() == Platform::EConnectionType::CONNECTION_NONE)
return NO;
auto const latLon = MercatorBounds::ToLatLon(position.get());
return ads::HasMegafonCategoryBanner(f.GetStorage(), f.GetTopmostCountries(latLon),