mirror of https://github.com/M66B/FairEmail.git
Apply overview mode to AMP
This commit is contained in:
parent
83ed76a1ef
commit
c961ff6025
|
@ -87,12 +87,13 @@ public class ActivityAMP extends ActivityBase {
|
||||||
grpReady = findViewById(R.id.grpReady);
|
grpReady = findViewById(R.id.grpReady);
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
boolean overview_mode = prefs.getBoolean("overview_mode", false);
|
||||||
boolean safe_browsing = prefs.getBoolean("safe_browsing", false);
|
boolean safe_browsing = prefs.getBoolean("safe_browsing", false);
|
||||||
|
|
||||||
WebSettings settings = wvAmp.getSettings();
|
WebSettings settings = wvAmp.getSettings();
|
||||||
settings.setUserAgentString(WebViewEx.getUserAgent(this, wvAmp));
|
settings.setUserAgentString(WebViewEx.getUserAgent(this, wvAmp));
|
||||||
settings.setUseWideViewPort(true);
|
settings.setUseWideViewPort(true);
|
||||||
settings.setLoadWithOverviewMode(true);
|
settings.setLoadWithOverviewMode(overview_mode);
|
||||||
|
|
||||||
settings.setBuiltInZoomControls(true);
|
settings.setBuiltInZoomControls(true);
|
||||||
settings.setDisplayZoomControls(false);
|
settings.setDisplayZoomControls(false);
|
||||||
|
|
Loading…
Reference in New Issue