Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorAleksey Belouosv <aleksey@maps.me>2019-04-30 23:40:46 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2019-05-08 16:49:33 +0300
commit694303bbb3ee476d6843fd4504ce6bb4e9a02d32 (patch)
tree753bd1240c7132d34b8c12d38b19e2b27278b27e /iphone
parent69f5b65ff7998ba2534715aea8911a3c74ce83a7 (diff)
[iOS] don't show "change driving options" on non-vehicle routes
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/Core/Routing/MWMRouter.mm2
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 {