diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index efdc8c4c7c..cfb042a66c 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1725,6 +1725,7 @@ public class AdapterMessage extends RecyclerView.Adapter= Build.VERSION_CODES.O && !BuildConfig.DEBUG) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptions.java b/app/src/main/java/eu/faircode/email/FragmentOptions.java index 32c6093e3f..3c1848c967 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptions.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptions.java @@ -92,7 +92,7 @@ public class FragmentOptions extends FragmentBase { "name_email", "prefer_contact", "only_contact", "distinguish_contacts", "show_recipients", "authentication", "subject_top", "font_size_sender", "font_size_subject", "subject_italic", "highlight_subject", "subject_ellipsize", "keywords_header", "labels_header", "flags", "flags_background", "preview", "preview_italic", "preview_lines", - "message_zoom", "overview_mode", "addresses", "attachments_alt", "thumbnails", + "message_zoom", "overview_mode", "addresses", "button_extra", "attachments_alt", "thumbnails", "contrast", "monospaced", "monospaced_pre", "text_color", "text_size", "text_font", "text_align", "text_separators", "collapse_quotes", "image_placeholders", "inline_images", diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java index cfc6082af8..b9c413c2ed 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsDisplay.java @@ -131,6 +131,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer private SwitchCompat swCollapseQuotes; private SwitchCompat swImagesPlaceholders; private SwitchCompat swImagesInline; + private SwitchCompat swButtonExtra; private SwitchCompat swAttachmentsAlt; private SwitchCompat swThumbnails; @@ -152,7 +153,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer "addresses", "message_zoom", "overview_mode", "contrast", "monospaced", "monospaced_pre", "text_color", "text_size", "text_font", "text_align", "text_separators", - "collapse_quotes", "image_placeholders", "inline_images", "attachments_alt", "thumbnails", + "collapse_quotes", "image_placeholders", "inline_images", "button_extra", "attachments_alt", "thumbnails", "parse_classes", "authentication" }; @@ -236,6 +237,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer swCollapseQuotes = view.findViewById(R.id.swCollapseQuotes); swImagesPlaceholders = view.findViewById(R.id.swImagesPlaceholders); swImagesInline = view.findViewById(R.id.swImagesInline); + swButtonExtra = view.findViewById(R.id.swButtonExtra); swAttachmentsAlt = view.findViewById(R.id.swAttachmentsAlt); swThumbnails = view.findViewById(R.id.swThumbnails); swParseClasses = view.findViewById(R.id.swParseClasses); @@ -815,6 +817,13 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer } }); + swButtonExtra.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { + @Override + public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { + prefs.edit().putBoolean("button_extra", checked).apply(); + } + }); + swAttachmentsAlt.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { @@ -1006,6 +1015,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer swCollapseQuotes.setChecked(prefs.getBoolean("collapse_quotes", false)); swImagesPlaceholders.setChecked(prefs.getBoolean("image_placeholders", true)); swImagesInline.setChecked(prefs.getBoolean("inline_images", false)); + swButtonExtra.setChecked(prefs.getBoolean("button_extra", false)); swAttachmentsAlt.setChecked(prefs.getBoolean("attachments_alt", false)); swThumbnails.setChecked(prefs.getBoolean("thumbnails", true)); diff --git a/app/src/main/res/layout/fragment_options_display.xml b/app/src/main/res/layout/fragment_options_display.xml index b4548f1c0b..ff02e1abf3 100644 --- a/app/src/main/res/layout/fragment_options_display.xml +++ b/app/src/main/res/layout/fragment_options_display.xml @@ -1130,6 +1130,17 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/swImagesInline" /> + + Collapse quoted text Show image placeholders Automatically show inline images + Show extra buttons at the bottom of a message Show relative conversation position with a dot Show conversation action bar Use account color as background color for conversation action bar