diff --git a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java index 884eaa1563..0fd38a9289 100644 --- a/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/POIMapLayer.java @@ -371,9 +371,9 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon settings.setDisplayZoomControls(false); settings.setSupportZoom(true); if (android.os.Build.VERSION.SDK_INT < 19) { - webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS); + settings.setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS); } else { - webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.TEXT_AUTOSIZING); + settings.setLayoutAlgorithm(LayoutAlgorithm.TEXT_AUTOSIZING); } wv.loadDataWithBaseURL(null, content, "text/html", "UTF-8", null); diff --git a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java index dfee20493c..3e89bb684c 100644 --- a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java +++ b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/mapcontextmenu/ContextMenuHelper.java @@ -107,9 +107,9 @@ public class ContextMenuHelper { settings.setDisplayZoomControls(false); settings.setSupportZoom(true); if (android.os.Build.VERSION.SDK_INT < 19) { - webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS); + settings.setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS); } else { - webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.TEXT_AUTOSIZING); + settings.setLayoutAlgorithm(LayoutAlgorithm.TEXT_AUTOSIZING); } wv.loadDataWithBaseURL(null, content, "text/html", "UTF-8", null);