Merge pull request #6284 from igrechuhin/fix

[fix] [ios] Added handler for build route cancellation.
This commit is contained in:
Roman Kuznetsov 2017-06-16 15:53:48 +03:00 committed by GitHub
commit 690859cbe5
2 changed files with 3 additions and 4 deletions

View file

@ -474,7 +474,9 @@ m2::PointD getMercator(MWMRoutePoint * p)
[self presentDownloaderAlert:code countries:absentCountries];
[mapViewControlsManager onRouteError];
break;
case routing::IRouter::Cancelled: break;
case routing::IRouter::Cancelled:
[mapViewControlsManager onRoutePrepare];
break;
case routing::IRouter::StartPointNotFound:
case routing::IRouter::EndPointNotFound:
case routing::IRouter::NoCurrentPosition:

View file

@ -511,9 +511,6 @@ void RoutingManager::CheckLocationForRouting(location::GpsInfo const & info)
void RoutingManager::CallRouteBuilded(routing::IRouter::ResultCode code,
storage::TCountriesVec const & absentCountries)
{
if (code == IRouter::Cancelled)
return;
m_routingCallback(code, absentCountries);
}