Browse Source

Support viewport meta tag

main
M66B 6 years ago
parent
commit
5eab316b47
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/src/main/java/eu/faircode/email/FragmentWebView.java

+ 1
- 0
app/src/main/java/eu/faircode/email/FragmentWebView.java View File

@ -52,6 +52,7 @@ public class FragmentWebView extends FragmentEx {
WebSettings settings = webview.getSettings(); WebSettings settings = webview.getSettings();
settings.setJavaScriptEnabled(true); settings.setJavaScriptEnabled(true);
settings.setUseWideViewPort(true);
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());


Loading…
Cancel
Save