diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2019-03-20 17:30:07 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-03-25 15:47:46 +0300 |
commit | c1788f19e617ccc9ae83206435fcdb7551251e04 (patch) | |
tree | 826dc50ac1a53bd483d6a182f7e1b1925c99927e /iphone | |
parent | 58f043b7662a9895b97fcce32985576bca6be3e3 (diff) |
Route builded callback receives new code RouterResultCode::HasWarnings.
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm | 1 | ||||
-rw-r--r-- | iphone/Maps/Core/Routing/MWMRouter.mm | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm b/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm index 19aef5103c..f51632e6fc 100644 --- a/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm +++ b/iphone/Maps/Classes/CustomAlert/BaseAlert/MWMAlert.mm @@ -81,6 +81,7 @@ case routing::RouterResultCode::InternalError: return [MWMDefaultAlert internalRoutingErrorAlert]; case routing::RouterResultCode::Cancelled: case routing::RouterResultCode::NoError: + case routing::RouterResultCode::HasWarnings: case routing::RouterResultCode::NeedMoreMaps: return nil; case routing::RouterResultCode::IntermediatePointNotFound: return [MWMDefaultAlert intermediatePointNotFoundAlert]; } diff --git a/iphone/Maps/Core/Routing/MWMRouter.mm b/iphone/Maps/Core/Routing/MWMRouter.mm index b8cf3749a6..362d0dff1e 100644 --- a/iphone/Maps/Core/Routing/MWMRouter.mm +++ b/iphone/Maps/Core/Routing/MWMRouter.mm @@ -627,6 +627,7 @@ void logPointEvent(MWMRoutePoint * point, NSString * eventType) switch (code) { case routing::RouterResultCode::NoError: + case routing::RouterResultCode::HasWarnings: { GetFramework().DeactivateMapSelection(true); |