From 68427ca6f1add1bae5993a89d9c6f667f8f5a3c5 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 24 Oct 2023 07:46:20 +0200 Subject: [PATCH] Added option to show recipient for sent messages --- CHANGELOG.md | 1 + app/src/main/assets/CHANGELOG.md | 1 + .../java/eu/faircode/email/AdapterMessage.java | 17 ++++++++++------- .../java/eu/faircode/email/FragmentOptions.java | 2 +- .../faircode/email/FragmentOptionsDisplay.java | 12 +++++++++++- .../res/layout/fragment_options_display.xml | 14 +++++++++++++- app/src/main/res/values/strings.xml | 1 + metadata/en-US/changelogs/2113.txt | 1 + 8 files changed, 39 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95e3aa1e38..60d926d490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ For support you can use [the contact form](https://contact.faircode.eu/?product= ### Next version * Added tap on title/subtitle to open/switch to inbox +* Addded option to disable showing recipient for sent messages * Small improvements and minor bug fixes * Updated [translations](https://crowdin.com/project/open-source-email) diff --git a/app/src/main/assets/CHANGELOG.md b/app/src/main/assets/CHANGELOG.md index 95e3aa1e38..60d926d490 100644 --- a/app/src/main/assets/CHANGELOG.md +++ b/app/src/main/assets/CHANGELOG.md @@ -9,6 +9,7 @@ For support you can use [the contact form](https://contact.faircode.eu/?product= ### Next version * Added tap on title/subtitle to open/switch to inbox +* Addded option to disable showing recipient for sent messages * Small improvements and minor bug fixes * Updated [translations](https://crowdin.com/project/open-source-email) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index fcf92594a7..908f38aaff 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -283,6 +283,7 @@ public class AdapterMessage extends RecyclerView.Adapter adapterView, View view, int position, long id) { @@ -1574,6 +1583,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer swOnlyContact.setChecked(prefs.getBoolean("only_contact", false)); swDistinguishContacts.setChecked(prefs.getBoolean("distinguish_contacts", false)); swShowRecipients.setChecked(prefs.getBoolean("show_recipients", false)); + swReverseAddresses.setChecked(prefs.getBoolean("reverse_addresses", true)); swSubjectTop.setChecked(prefs.getBoolean("subject_top", false)); swSubjectItalic.setChecked(prefs.getBoolean("subject_italic", true)); diff --git a/app/src/main/res/layout/fragment_options_display.xml b/app/src/main/res/layout/fragment_options_display.xml index 66e588cdf1..bb55708748 100644 --- a/app/src/main/res/layout/fragment_options_display.xml +++ b/app/src/main/res/layout/fragment_options_display.xml @@ -1341,6 +1341,18 @@ app:layout_constraintTop_toBottomOf="@id/swDistinguishContacts" app:switchPadding="12dp" /> + + + app:layout_constraintTop_toBottomOf="@id/swReverseAddresses" /> Display contact names only Underline the sender when the sender is known as local \'to\' contact Show recipients in message header + Show recipient for sent messages Text size sender If needed, shorten the sender diff --git a/metadata/en-US/changelogs/2113.txt b/metadata/en-US/changelogs/2113.txt index c44c37b801..37b12e4772 100644 --- a/metadata/en-US/changelogs/2113.txt +++ b/metadata/en-US/changelogs/2113.txt @@ -9,6 +9,7 @@ Vallibonavenatrix Next version * Added tap on title/subtitle to open/switch to inbox +* Addded option to disable showing recipient for sent messages * Small improvements and minor bug fixes * Updated translations