From 5a3ac3cfd52ee856150c22b68688b0a0992da5f6 Mon Sep 17 00:00:00 2001 From: xmd5a Date: Mon, 16 Dec 2019 12:29:50 +0300 Subject: [PATCH] Add 'desert' rendering style to renderer registry --- OsmAnd/res/values/strings.xml | 1 + OsmAnd/src/net/osmand/plus/render/RendererRegistry.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index d7443e32ad..53b502e756 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -11,6 +11,7 @@ Thx - Hardy --> + For deserts and other sparsely populated areas. Downloading %s %1$s • %2$s %1$s, %2$s diff --git a/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java b/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java index 3768b1d574..dab94170ed 100644 --- a/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java +++ b/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java @@ -45,6 +45,7 @@ public class RendererRegistry { public final static String OFFROAD_RENDER = "Offroad"; //$NON-NLS-1$ public final static String LIGHTRS_RENDER = "LightRS"; //$NON-NLS-1$ public final static String UNIRS_RENDER = "UniRS"; //$NON-NLS-1$ + public final static String DESERT_RENDER = "Desert"; //$NON-NLS-1$ private RenderingRulesStorage defaultRender = null; private RenderingRulesStorage currentSelectedRender = null; @@ -73,6 +74,7 @@ public class RendererRegistry { internalRenderers.put(NAUTICAL_RENDER, "nautical" + ".render.xml"); internalRenderers.put(WINTER_SKI_RENDER, "skimap" + ".render.xml"); internalRenderers.put(OFFROAD_RENDER, "offroad" + ".render.xml"); + internalRenderers.put(DESERT_RENDER, "desert" + ".render.xml"); } public RenderingRulesStorage defaultRender() { @@ -305,6 +307,8 @@ public class RendererRegistry { return ctx.getString(R.string.nautical_render_descr); case OFFROAD_RENDER: return ctx.getString(R.string.off_road_render_descr); + case DESERT_RENDER: + return ctx.getString(R.string.desert_render_descr); } return ""; }