|
|
|
@ -154,6 +154,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private ImageButton ibSqliteCache;
|
|
|
|
|
private SwitchCompat swUndoManager;
|
|
|
|
|
private SwitchCompat swWebViewLegacy;
|
|
|
|
|
private SwitchCompat swBrowserZoom;
|
|
|
|
|
private SwitchCompat swModSeq;
|
|
|
|
|
private SwitchCompat swUid;
|
|
|
|
|
private SwitchCompat swExpunge;
|
|
|
|
@ -204,7 +205,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
"protocol", "debug", "log_level", "test1", "test2", "test3", "test4", "test5",
|
|
|
|
|
"work_manager", // "external_storage",
|
|
|
|
|
"query_threads", "wal", "sqlite_checkpoints", "sqlite_analyze", "sqlite_cache",
|
|
|
|
|
"chunk_size", "thread_range", "undo_manager", "webview_legacy",
|
|
|
|
|
"chunk_size", "thread_range", "undo_manager", "webview_legacy", "browser_zoom",
|
|
|
|
|
"use_modseq", "uid_command", "perform_expunge", "uid_expunge",
|
|
|
|
|
"auth_plain", "auth_login", "auth_ntlm", "auth_sasl", "auth_apop",
|
|
|
|
|
"keep_alive_poll", "empty_pool", "idle_done", "logarithmic_backoff",
|
|
|
|
@ -313,6 +314,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
sbThreadRange = view.findViewById(R.id.sbThreadRange);
|
|
|
|
|
swUndoManager = view.findViewById(R.id.swUndoManager);
|
|
|
|
|
swWebViewLegacy = view.findViewById(R.id.swWebViewLegacy);
|
|
|
|
|
swBrowserZoom = view.findViewById(R.id.swBrowserZoom);
|
|
|
|
|
swModSeq = view.findViewById(R.id.swModSeq);
|
|
|
|
|
swUid = view.findViewById(R.id.swUid);
|
|
|
|
|
swExpunge = view.findViewById(R.id.swExpunge);
|
|
|
|
@ -1009,6 +1011,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swBrowserZoom.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("browser_zoom", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swModSeq.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -1684,6 +1693,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
|
|
|
|
|
swUndoManager.setChecked(prefs.getBoolean("undo_manager", false));
|
|
|
|
|
swWebViewLegacy.setChecked(prefs.getBoolean("webview_legacy", false));
|
|
|
|
|
swBrowserZoom.setChecked(prefs.getBoolean("browser_zoom", true));
|
|
|
|
|
swModSeq.setChecked(prefs.getBoolean("use_modseq", true));
|
|
|
|
|
swUid.setChecked(prefs.getBoolean("uid_command", false));
|
|
|
|
|
swExpunge.setChecked(prefs.getBoolean("perform_expunge", true));
|
|
|
|
|