From a2a70acbfbd0ceb32443cffb76d84998e49dc438 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 22 Feb 2015 14:17:47 +0100 Subject: [PATCH] put correct string --- OsmAnd/src/net/osmand/plus/render/RendererRegistry.java | 6 +++--- .../src/net/osmand/plus/touringview/TouringViewPlugin.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java b/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java index 15bf171990..54a1d937c4 100644 --- a/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java +++ b/OsmAnd/src/net/osmand/plus/render/RendererRegistry.java @@ -24,9 +24,9 @@ public class RendererRegistry { private final static Log log = PlatformUtil.getLog(RendererRegistry.class); public final static String DEFAULT_RENDER = "OsmAnd"; //$NON-NLS-1$ + public final static String TOURING_VIEW = "Touring view (contrast and details)"; //$NON-NLS-1$ + public final static String WINTER_SKI_RENDER = "Winter and ski"; //$NON-NLS-1$ public final static String NAUTICAL_RENDER = "Nautical"; //$NON-NLS-1$ - - public static final String WINTER_SKI_RENDER = "Winter and ski"; private RenderingRulesStorage defaultRender = null; private RenderingRulesStorage currentSelectedRender = null; @@ -44,8 +44,8 @@ public class RendererRegistry { public RendererRegistry(){ internalRenderers.put(DEFAULT_RENDER, "default.render.xml"); + internalRenderers.put("TOURING_VIEW", "Touring-view_(more-contrast-and-details)" +".render.xml"); internalRenderers.put("UniRS", "UniRS" + ".render.xml"); - internalRenderers.put("Touring view (contrast and details)", "Touring-view_(more-contrast-and-details)" +".render.xml"); internalRenderers.put("LightRS", "LightRS" + ".render.xml"); internalRenderers.put(NAUTICAL_RENDER, "nautical" + ".render.xml"); internalRenderers.put(WINTER_SKI_RENDER, "skimap" + ".render.xml"); diff --git a/OsmAnd/src/net/osmand/plus/touringview/TouringViewPlugin.java b/OsmAnd/src/net/osmand/plus/touringview/TouringViewPlugin.java index a5fc55e83d..1bcb29d516 100644 --- a/OsmAnd/src/net/osmand/plus/touringview/TouringViewPlugin.java +++ b/OsmAnd/src/net/osmand/plus/touringview/TouringViewPlugin.java @@ -44,7 +44,7 @@ public class NauticalMapsPlugin extends OsmandPlugin { if(activity != null) { // called from UI previousRenderer = app.getSettings().RENDERER.get(); - app.getSettings().RENDERER.set(RendererRegistry.NAUTICAL_RENDER); + app.getSettings().RENDERER.set(RendererRegistry.TOURING_VIEW); } return true; } @@ -52,7 +52,7 @@ public class NauticalMapsPlugin extends OsmandPlugin { @Override public void disable(OsmandApplication app) { super.disable(app); - if(app.getSettings().RENDERER.get().equals(RendererRegistry.NAUTICAL_RENDER)) { + if(app.getSettings().RENDERER.get().equals(RendererRegistry.TOURING_VIEW)) { app.getSettings().RENDERER.set(previousRenderer); } }