1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Removed legacy web view option

This commit is contained in:
M66B 2022-06-13 11:37:02 +02:00
parent ff5443c645
commit 3eeb31b76e
2 changed files with 3 additions and 2 deletions

View file

@ -1022,6 +1022,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
});
swWebViewLegacy.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
swWebViewLegacy.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {

View file

@ -107,10 +107,10 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean compact = prefs.getBoolean("compact", false);
int zoom = prefs.getInt("view_zoom", compact ? 0 : 1);
boolean browser_zoom = prefs.getBoolean("browser_zoom", false) && BuildConfig.DEBUG;
boolean browser_zoom = (prefs.getBoolean("browser_zoom", false) && BuildConfig.DEBUG);
int message_zoom = prefs.getInt("message_zoom", 100);
boolean monospaced = prefs.getBoolean("monospaced", false);
legacy = prefs.getBoolean("webview_legacy", false);
legacy = (prefs.getBoolean("webview_legacy", false) && BuildConfig.DEBUG);
WebSettings settings = getSettings();