Apply overview mode to AMP

This commit is contained in:
M66B 2022-02-15 16:29:15 +01:00
parent 83ed76a1ef
commit c961ff6025
1 changed files with 2 additions and 1 deletions

View File

@ -87,12 +87,13 @@ public class ActivityAMP extends ActivityBase {
grpReady = findViewById(R.id.grpReady);
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
boolean overview_mode = prefs.getBoolean("overview_mode", false);
boolean safe_browsing = prefs.getBoolean("safe_browsing", false);
WebSettings settings = wvAmp.getSettings();
settings.setUserAgentString(WebViewEx.getUserAgent(this, wvAmp));
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
settings.setLoadWithOverviewMode(overview_mode);
settings.setBuiltInZoomControls(true);
settings.setDisplayZoomControls(false);