Fix for trac ticket #2485.

This commit is contained in:
meeh
2019-05-01 12:59:56 +00:00
parent 6c0a60892f
commit b73b72c9c8

View File

@ -49,6 +49,7 @@ public class WebFragment extends I2PFragmentBase {
wv.getSettings().setBuiltInZoomControls(true); wv.getSettings().setBuiltInZoomControls(true);
// http://stackoverflow.com/questions/2369310/webview-double-tap-zoom-not-working-on-a-motorola-droid-a855 // http://stackoverflow.com/questions/2369310/webview-double-tap-zoom-not-working-on-a-motorola-droid-a855
wv.getSettings().setUseWideViewPort(true); wv.getSettings().setUseWideViewPort(true);
if (getArguments() != null) {
_uriStr = getArguments().getString(HTML_URI); _uriStr = getArguments().getString(HTML_URI);
if (_uriStr != null) { if (_uriStr != null) {
Uri uri = Uri.parse(_uriStr); Uri uri = Uri.parse(_uriStr);
@ -63,6 +64,7 @@ public class WebFragment extends I2PFragmentBase {
if (id != 0) if (id != 0)
loadResource(wv, id); loadResource(wv, id);
} }
}
return v; return v;
} }