forked from organicmaps/organicmaps
[MAPSME-5360] [ios] Removed cian loader spinner on failure.
This commit is contained in:
parent
18291b1768
commit
1b05c6fd00
1 changed files with 6 additions and 0 deletions
|
@ -294,12 +294,18 @@ using namespace place_page;
|
|||
[self insertSpecialProjectsSectionWithProject:SpecialProject::Cian];
|
||||
|
||||
if (Platform::ConnectionStatus() == Platform::EConnectionType::CONNECTION_NONE)
|
||||
{
|
||||
self.cianIsReadyCallback(@[]);
|
||||
return;
|
||||
}
|
||||
|
||||
network_policy::CallPartnersApi([self](platform::NetworkPolicy const & canUseNetwork) {
|
||||
auto api = GetFramework().GetCianApi(canUseNetwork);
|
||||
if (!api)
|
||||
{
|
||||
self.cianIsReadyCallback(@[]);
|
||||
return;
|
||||
}
|
||||
auto const latLon = [self latLon];
|
||||
|
||||
__weak auto wSuccessSelf = self;
|
||||
|
|
Loading…
Add table
Reference in a new issue