|
|
|
@ -193,7 +193,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private SeekBar sbThreadRange;
|
|
|
|
|
private ImageButton ibSqliteCache;
|
|
|
|
|
private SwitchCompat swUndoManager;
|
|
|
|
|
private SwitchCompat swWebViewLegacy;
|
|
|
|
|
private SwitchCompat swBrowserZoom;
|
|
|
|
|
private SwitchCompat swFakeDark;
|
|
|
|
|
private SwitchCompat swShowRecent;
|
|
|
|
@ -264,7 +263,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
"query_threads",
|
|
|
|
|
"sqlite_integrity_check", "wal", "sqlite_checkpoints", "sqlite_analyze", "sqlite_auto_vacuum", "sqlite_sync_extra", "sqlite_cache",
|
|
|
|
|
"chunk_size", "thread_range", "undo_manager",
|
|
|
|
|
"webview_legacy", "browser_zoom", "fake_dark",
|
|
|
|
|
"browser_zoom", "fake_dark",
|
|
|
|
|
"show_recent",
|
|
|
|
|
"use_modseq", "uid_command", "perform_expunge", "uid_expunge",
|
|
|
|
|
"auth_plain", "auth_login", "auth_ntlm", "auth_sasl", "auth_apop", "use_top",
|
|
|
|
@ -410,7 +409,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
tvThreadRange = view.findViewById(R.id.tvThreadRange);
|
|
|
|
|
sbThreadRange = view.findViewById(R.id.sbThreadRange);
|
|
|
|
|
swUndoManager = view.findViewById(R.id.swUndoManager);
|
|
|
|
|
swWebViewLegacy = view.findViewById(R.id.swWebViewLegacy);
|
|
|
|
|
swBrowserZoom = view.findViewById(R.id.swBrowserZoom);
|
|
|
|
|
swFakeDark = view.findViewById(R.id.swFakeDark);
|
|
|
|
|
swShowRecent = view.findViewById(R.id.swShowRecent);
|
|
|
|
@ -1394,14 +1392,6 @@ 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) {
|
|
|
|
|
prefs.edit().putBoolean("webview_legacy", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swBrowserZoom.setVisibility(BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
|
|
|
|
|
swBrowserZoom.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
@ -2230,7 +2220,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
sbThreadRange.setProgress(thread_range);
|
|
|
|
|
|
|
|
|
|
swUndoManager.setChecked(prefs.getBoolean("undo_manager", false));
|
|
|
|
|
swWebViewLegacy.setChecked(prefs.getBoolean("webview_legacy", false));
|
|
|
|
|
swBrowserZoom.setChecked(prefs.getBoolean("browser_zoom", false));
|
|
|
|
|
swFakeDark.setChecked(prefs.getBoolean("fake_dark", false));
|
|
|
|
|
swShowRecent.setChecked(prefs.getBoolean("show_recent", false));
|
|
|
|
|