From cd54096303392fb2b24a0027f3bdb6a7fa776494 Mon Sep 17 00:00:00 2001 From: sonora Date: Fri, 6 Jan 2017 13:06:13 +0100 Subject: [PATCH] mask proper SDK level --- OsmAnd/src/net/osmand/plus/views/POIMapLayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java index 68a75b2d65..966c14c673 100644 --- a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java @@ -369,7 +369,9 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon settings.setBuiltInZoomControls(true); settings.setDisplayZoomControls(false); settings.setSupportZoom(true); - settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f)); + if (android.os.Build.VERSION.SDK_INT >= 14) { + settings.setTextZoom((int) (ctx.getResources().getDisplayMetrics().density * 100f)); + } wv.loadDataWithBaseURL(null, content, "text/html", "UTF-8", null); // wv.loadUrl(OsMoService.SIGN_IN_URL + app.getSettings().OSMO_DEVICE_KEY.get());