put correct string

This commit is contained in:
sonora 2015-02-22 14:17:47 +01:00
parent 40db43da76
commit a2a70acbfb
2 changed files with 5 additions and 5 deletions

View file

@ -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");

View file

@ -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);
}
}