forked from organicmaps/organicmaps
[iOS] Show megafon banner only when online
This commit is contained in:
parent
e4effc2072
commit
32d4b9574b
1 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue