From 98d02f7e8edf4ca31b8033d9cf9bce3171f15081 Mon Sep 17 00:00:00 2001 From: Nazar-Kutz Date: Thu, 7 May 2020 14:36:10 +0300 Subject: [PATCH] Remove "Transport" from "Map rendering" section of Configure Map menu --- .../src/net/osmand/aidlapi/OsmAndCustomizationConstants.java | 1 - OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java | 4 ---- 2 files changed, 5 deletions(-) diff --git a/OsmAnd-api/src/net/osmand/aidlapi/OsmAndCustomizationConstants.java b/OsmAnd-api/src/net/osmand/aidlapi/OsmAndCustomizationConstants.java index de443bedf3..2e1543321a 100644 --- a/OsmAnd-api/src/net/osmand/aidlapi/OsmAndCustomizationConstants.java +++ b/OsmAnd-api/src/net/osmand/aidlapi/OsmAndCustomizationConstants.java @@ -54,7 +54,6 @@ public interface OsmAndCustomizationConstants { String ROAD_STYLE_ID = RENDERING_ITEMS_ID_SCHEME + "road_style"; String TEXT_SIZE_ID = RENDERING_ITEMS_ID_SCHEME + "text_size"; String MAP_LANGUAGE_ID = RENDERING_ITEMS_ID_SCHEME + "map_language"; - String TRANSPORT_RENDERING_ID = RENDERING_ITEMS_ID_SCHEME + "transport"; String DETAILS_ID = RENDERING_ITEMS_ID_SCHEME + "details"; String HIDE_ID = RENDERING_ITEMS_ID_SCHEME + "hide"; String ROUTES_ID = RENDERING_ITEMS_ID_SCHEME + "routes"; diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java index 49e32c1163..90db52fedf 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java @@ -100,7 +100,6 @@ import static net.osmand.aidlapi.OsmAndCustomizationConstants.ROUTES_ID; import static net.osmand.aidlapi.OsmAndCustomizationConstants.SHOW_CATEGORY_ID; import static net.osmand.aidlapi.OsmAndCustomizationConstants.TEXT_SIZE_ID; import static net.osmand.aidlapi.OsmAndCustomizationConstants.TRANSPORT_ID; -import static net.osmand.aidlapi.OsmAndCustomizationConstants.TRANSPORT_RENDERING_ID; import static net.osmand.aidlapi.OsmAndCustomizationConstants.WIKIPEDIA_ID; import static net.osmand.plus.ContextMenuAdapter.makeDeleteAction; import static net.osmand.plus.poi.PoiFiltersHelper.PoiTemplateList; @@ -158,7 +157,6 @@ public class ConfigureMapMenu { if (renderer != null) { for (RenderingRuleProperty p : renderer.PROPS.getCustomRules()) { if (!RenderingRuleStorageProperties.UI_CATEGORY_HIDDEN.equals(p.getCategory()) - && !TransportLinesMenu.TRANSPORT_RENDERING_CATEGORY.equals(p.getCategory()) && (useDepthContours || !p.getAttrName().equals("depthContours"))) { customRules.add(p); } @@ -769,8 +767,6 @@ public class ConfigureMapMenu { .setItemDeleteAction(makeDeleteAction(settings.MAP_PREFERRED_LOCALE)) .createItem()); - props = createProperties(customRules, null, R.string.rendering_category_transport, R.drawable.ic_action_transport_bus, - "transport", null, adapter, activity, true, TRANSPORT_RENDERING_ID, themeRes, nightMode, selectedProfileColor); if (props != null) { adapter.addItem(props); }