diff --git a/OsmAnd/src/net/osmand/plus/views/corenative/NativeCoreContext.java b/OsmAnd/src/net/osmand/plus/views/corenative/NativeCoreContext.java index 937f4208f9..d6cba88d12 100644 --- a/OsmAnd/src/net/osmand/plus/views/corenative/NativeCoreContext.java +++ b/OsmAnd/src/net/osmand/plus/views/corenative/NativeCoreContext.java @@ -55,13 +55,12 @@ public class NativeCoreContext { WindowManager mgr = (WindowManager)app.getSystemService(Context.WINDOW_SERVICE); DisplayMetrics dm = new DisplayMetrics(); mgr.getDefaultDisplay().getMetrics(dm); - float density = Math.max(0, dm.density - 1); ObfsCollection obfsCollection = new ObfsCollection(); obfsCollection.addDirectory(directory.getAbsolutePath(), false); MapStylesCollection mapStylesCollection = setupMapStyleCollection(app); - mapRendererContext = new MapRendererContext(app, density); + mapRendererContext = new MapRendererContext(app, dm.density); mapRendererContext.setupObfMap(mapStylesCollection, obfsCollection); init = true; }