|
|
@ -97,8 +97,10 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
private SwitchCompat swPreview;
|
|
|
|
private SwitchCompat swPreview;
|
|
|
|
private SwitchCompat swPreviewItalic;
|
|
|
|
private SwitchCompat swPreviewItalic;
|
|
|
|
private Spinner spPreviewLines;
|
|
|
|
private Spinner spPreviewLines;
|
|
|
|
|
|
|
|
|
|
|
|
private SwitchCompat swAddresses;
|
|
|
|
private SwitchCompat swAddresses;
|
|
|
|
private SwitchCompat swArchiveTrash;
|
|
|
|
private SwitchCompat swArchiveTrash;
|
|
|
|
|
|
|
|
private SwitchCompat swMove;
|
|
|
|
|
|
|
|
|
|
|
|
private SwitchCompat swContrast;
|
|
|
|
private SwitchCompat swContrast;
|
|
|
|
private SwitchCompat swMonospaced;
|
|
|
|
private SwitchCompat swMonospaced;
|
|
|
@ -119,7 +121,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
"subject_top", "font_size_sender", "font_size_subject", "subject_italic", "highlight_subject", "subject_ellipsize",
|
|
|
|
"subject_top", "font_size_sender", "font_size_subject", "subject_italic", "highlight_subject", "subject_ellipsize",
|
|
|
|
"keywords_header", "flags", "flags_background",
|
|
|
|
"keywords_header", "flags", "flags_background",
|
|
|
|
"preview", "preview_italic", "preview_lines",
|
|
|
|
"preview", "preview_italic", "preview_lines",
|
|
|
|
"addresses", "archive_trash",
|
|
|
|
"addresses", "button_archive_trash", "button_move",
|
|
|
|
"contrast", "monospaced", "text_color", "text_size",
|
|
|
|
"contrast", "monospaced", "text_color", "text_size",
|
|
|
|
"inline_images", "collapse_quotes", "attachments_alt",
|
|
|
|
"inline_images", "collapse_quotes", "attachments_alt",
|
|
|
|
"authentication"
|
|
|
|
"authentication"
|
|
|
@ -179,6 +181,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
spPreviewLines = view.findViewById(R.id.spPreviewLines);
|
|
|
|
spPreviewLines = view.findViewById(R.id.spPreviewLines);
|
|
|
|
swAddresses = view.findViewById(R.id.swAddresses);
|
|
|
|
swAddresses = view.findViewById(R.id.swAddresses);
|
|
|
|
swArchiveTrash = view.findViewById(R.id.swArchiveTrash);
|
|
|
|
swArchiveTrash = view.findViewById(R.id.swArchiveTrash);
|
|
|
|
|
|
|
|
swMove = view.findViewById(R.id.swMove);
|
|
|
|
swContrast = view.findViewById(R.id.swContrast);
|
|
|
|
swContrast = view.findViewById(R.id.swContrast);
|
|
|
|
swMonospaced = view.findViewById(R.id.swMonospaced);
|
|
|
|
swMonospaced = view.findViewById(R.id.swMonospaced);
|
|
|
|
swTextColor = view.findViewById(R.id.swTextColor);
|
|
|
|
swTextColor = view.findViewById(R.id.swTextColor);
|
|
|
@ -548,7 +551,14 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
swArchiveTrash.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swArchiveTrash.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
prefs.edit().putBoolean("archive_trash", checked).apply();
|
|
|
|
prefs.edit().putBoolean("button_archive_trash", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swMove.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("button_move", checked).apply();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -739,7 +749,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|
|
|
spPreviewLines.setSelection(prefs.getInt("preview_lines", 2) - 1);
|
|
|
|
spPreviewLines.setSelection(prefs.getInt("preview_lines", 2) - 1);
|
|
|
|
spPreviewLines.setEnabled(swPreview.isChecked());
|
|
|
|
spPreviewLines.setEnabled(swPreview.isChecked());
|
|
|
|
swAddresses.setChecked(prefs.getBoolean("addresses", false));
|
|
|
|
swAddresses.setChecked(prefs.getBoolean("addresses", false));
|
|
|
|
swArchiveTrash.setChecked(prefs.getBoolean("archive_trash", true));
|
|
|
|
swArchiveTrash.setChecked(prefs.getBoolean("button_archive_trash", true));
|
|
|
|
|
|
|
|
swMove.setChecked(prefs.getBoolean("button_move", true));
|
|
|
|
swContrast.setChecked(prefs.getBoolean("contrast", false));
|
|
|
|
swContrast.setChecked(prefs.getBoolean("contrast", false));
|
|
|
|
swMonospaced.setChecked(prefs.getBoolean("monospaced", false));
|
|
|
|
swMonospaced.setChecked(prefs.getBoolean("monospaced", false));
|
|
|
|
swTextColor.setChecked(prefs.getBoolean("text_color", true));
|
|
|
|
swTextColor.setChecked(prefs.getBoolean("text_color", true));
|
|
|
|