fix build
This commit is contained in:
parent
731f36013c
commit
b57a19c3d0
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue