[MAPSME-5360] [ios] Removed cian loader spinner on failure.

This commit is contained in:
Ilya Grechuhin 2017-08-16 15:41:50 +03:00 committed by Vladimir Byko-Ianko
parent 18291b1768
commit 1b05c6fd00

View file

@ -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;