diff --git a/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java b/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java index 740ebd2a7c..80d10268c8 100644 --- a/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java +++ b/OsmAnd/src/net/osmand/plus/views/controls/MapRouteInfoControl.java @@ -12,6 +12,8 @@ import net.osmand.data.RotatedTileBox; import net.osmand.data.RotatedTileBox.RotatedTileBoxBuilder; import net.osmand.plus.OsmAndLocationProvider; import net.osmand.plus.OsmandApplication; +import net.osmand.plus.OsmandPlugin; +import net.osmand.plus.development.OsmandDevelopmentPlugin; import net.osmand.plus.R; import net.osmand.plus.TargetPointsHelper; import net.osmand.plus.TargetPointsHelper.TargetPoint; @@ -276,6 +278,9 @@ public class MapRouteInfoControl extends MapControls implements IRouteInformatio if(mapActivity.getRoutingHelper().isFollowingMode()) { simulateRoute.setVisibility(View.GONE); } + if (OsmandPlugin.getEnabledPlugin(OsmandDevelopmentPlugin.class) == null) { + simulateRoute.setVisibility(View.GONE); + } simulateRoute.setText(loc.getLocationSimulation().isRouteAnimating() ? R.string.animate_route_off : R.string.animate_route); simulateRoute.setOnClickListener(new View.OnClickListener() {