|
|
@ -190,6 +190,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
private SwitchCompat swBrowserZoom;
|
|
|
|
private SwitchCompat swBrowserZoom;
|
|
|
|
private SwitchCompat swFakeDark;
|
|
|
|
private SwitchCompat swFakeDark;
|
|
|
|
private EditText etViewportHeight;
|
|
|
|
private EditText etViewportHeight;
|
|
|
|
|
|
|
|
private SwitchCompat swIgnoreFormattedSize;
|
|
|
|
private SwitchCompat swShowRecent;
|
|
|
|
private SwitchCompat swShowRecent;
|
|
|
|
private SwitchCompat swModSeq;
|
|
|
|
private SwitchCompat swModSeq;
|
|
|
|
private SwitchCompat swPreamble;
|
|
|
|
private SwitchCompat swPreamble;
|
|
|
@ -283,6 +284,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
"chunk_size", "thread_range",
|
|
|
|
"chunk_size", "thread_range",
|
|
|
|
"autoscroll_editor", "undo_manager",
|
|
|
|
"autoscroll_editor", "undo_manager",
|
|
|
|
"browser_zoom", "fake_dark",
|
|
|
|
"browser_zoom", "fake_dark",
|
|
|
|
|
|
|
|
"ignore_formatted_size",
|
|
|
|
"show_recent",
|
|
|
|
"show_recent",
|
|
|
|
"use_modseq", "preamble", "uid_command", "perform_expunge", "uid_expunge",
|
|
|
|
"use_modseq", "preamble", "uid_command", "perform_expunge", "uid_expunge",
|
|
|
|
"auth_plain", "auth_login", "auth_ntlm", "auth_sasl", "auth_apop", "use_top", "forget_top",
|
|
|
|
"auth_plain", "auth_login", "auth_ntlm", "auth_sasl", "auth_apop", "use_top", "forget_top",
|
|
|
@ -433,6 +435,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
swBrowserZoom = view.findViewById(R.id.swBrowserZoom);
|
|
|
|
swBrowserZoom = view.findViewById(R.id.swBrowserZoom);
|
|
|
|
swFakeDark = view.findViewById(R.id.swFakeDark);
|
|
|
|
swFakeDark = view.findViewById(R.id.swFakeDark);
|
|
|
|
etViewportHeight = view.findViewById(R.id.etViewportHeight);
|
|
|
|
etViewportHeight = view.findViewById(R.id.etViewportHeight);
|
|
|
|
|
|
|
|
swIgnoreFormattedSize = view.findViewById(R.id.swIgnoreFormattedSize);
|
|
|
|
swShowRecent = view.findViewById(R.id.swShowRecent);
|
|
|
|
swShowRecent = view.findViewById(R.id.swShowRecent);
|
|
|
|
swModSeq = view.findViewById(R.id.swModSeq);
|
|
|
|
swModSeq = view.findViewById(R.id.swModSeq);
|
|
|
|
swPreamble = view.findViewById(R.id.swPreamble);
|
|
|
|
swPreamble = view.findViewById(R.id.swPreamble);
|
|
|
@ -1339,6 +1342,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swIgnoreFormattedSize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("ignore_formatted_size", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swShowRecent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swShowRecent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -2363,6 +2373,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
etViewportHeight.setText(Integer.toString(vh));
|
|
|
|
etViewportHeight.setText(Integer.toString(vh));
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
etViewportHeight.setText(null);
|
|
|
|
etViewportHeight.setText(null);
|
|
|
|
|
|
|
|
swIgnoreFormattedSize.setChecked(prefs.getBoolean("ignore_formatted_size", false));
|
|
|
|
swShowRecent.setChecked(prefs.getBoolean("show_recent", false));
|
|
|
|
swShowRecent.setChecked(prefs.getBoolean("show_recent", false));
|
|
|
|
swModSeq.setChecked(prefs.getBoolean("use_modseq", true));
|
|
|
|
swModSeq.setChecked(prefs.getBoolean("use_modseq", true));
|
|
|
|
swPreamble.setChecked(prefs.getBoolean("preamble", false));
|
|
|
|
swPreamble.setChecked(prefs.getBoolean("preamble", false));
|
|
|
|