Search in sources :

Example 1 with RendererRegistry

use of net.osmand.plus.render.RendererRegistry in project Osmand by osmandapp.

the class ConfigureMapMenu method getRenderDescr.

protected String getRenderDescr(final MapActivity activity) {
    RendererRegistry rr = activity.getMyApplication().getRendererRegistry();
    RenderingRulesStorage storage = rr.getCurrentSelectedRenderer();
    if (storage == null) {
        return "";
    }
    String translation = RendererRegistry.getTranslatedRendererName(activity, storage.getName());
    return translation == null ? storage.getName() : translation;
}
Also used : RendererRegistry(net.osmand.plus.render.RendererRegistry) RenderingRulesStorage(net.osmand.render.RenderingRulesStorage)

Aggregations

RendererRegistry (net.osmand.plus.render.RendererRegistry)1 RenderingRulesStorage (net.osmand.render.RenderingRulesStorage)1