diff options
author | Aleksey Belouosv <aleksey@maps.me> | 2019-04-30 23:40:46 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-08 16:49:33 +0300 |
commit | 694303bbb3ee476d6843fd4504ce6bb4e9a02d32 (patch) | |
tree | 753bd1240c7132d34b8c12d38b19e2b27278b27e /iphone | |
parent | 69f5b65ff7998ba2534715aea8911a3c74ce83a7 (diff) |
[iOS] don't show "change driving options" on non-vehicle routes
Diffstat (limited to 'iphone')
-rw-r--r-- | iphone/Maps/Core/Routing/MWMRouter.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iphone/Maps/Core/Routing/MWMRouter.mm b/iphone/Maps/Core/Routing/MWMRouter.mm index 1604c4ee30..7643b32a3a 100644 --- a/iphone/Maps/Core/Routing/MWMRouter.mm +++ b/iphone/Maps/Core/Routing/MWMRouter.mm @@ -793,7 +793,7 @@ void logPointEvent(MWMRoutePoint * point, NSString * eventType) } + (BOOL)hasActiveDrivingOptions { - return [MWMRoutingOptions new].hasOptions; + return [MWMRoutingOptions new].hasOptions && self.type == MWMRouterTypeVehicle; } + (void)avoidRoadTypeAndRebuild:(MWMRoadType)type { |