Commit fb689181 authored by pichillilorenzo's avatar pichillilorenzo

fix webview scaling

parent 9c30ed77
This diff is collapsed.
......@@ -102,6 +102,14 @@ public class WebViewActivity extends AppCompatActivity {
settings.setUseWideViewPort(options.useWideViewPort);
settings.setSupportZoom(options.supportZoom);
// fix webview scaling
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING);
}
else {
settings.setTextZoom(100);
}
}
@Override
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment