fix build

This commit is contained in:
sonora 2017-01-05 03:15:54 +01:00
parent 731f36013c
commit b57a19c3d0
2 changed files with 4 additions and 4 deletions

View file

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

View file

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