From 467966c4ccec062e12b058bdd8876c3df2fb86ef Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 1 Sep 2019 22:33:32 +0200 Subject: [PATCH] Ask show images per sender --- FAQ.md | 18 ++++-- .../eu/faircode/email/AdapterMessage.java | 44 ++++++++----- .../java/eu/faircode/email/ContactInfo.java | 32 ---------- .../eu/faircode/email/FragmentOptions.java | 3 +- .../email/FragmentOptionsDisplay.java | 22 +------ .../faircode/email/FragmentOptionsMisc.java | 22 +++++-- .../res/layout/fragment_options_display.xml | 62 +------------------ app/src/main/res/values/strings.xml | 4 +- 8 files changed, 63 insertions(+), 144 deletions(-) diff --git a/FAQ.md b/FAQ.md index 9b3e28a61c..7502affa74 100644 --- a/FAQ.md +++ b/FAQ.md @@ -205,7 +205,7 @@ FairEmail follows all the best practices for an email client as decribed in [thi * [(113) How does biometric authentication work?](#user-content-faq113) * [(114) Can you add an import for the settings of other email apps?](#user-content-faq114) * [(115) Can you add email address chips?](#user-content-faq114) -* [(116) How can I show images in messages from trusted senders by default?](#user-content-faq116) +* [~~(116) How can I show images in messages from trusted senders by default?~~](#user-content-faq116) * [(117) Can you help me restore my purchase?](#user-content-faq117) * [(118) What does 'Remove tracking parameters' exactly?](#user-content-faq118) * [(119) Can you add colors to the unified inbox widget?](#user-content-faq119) @@ -217,6 +217,7 @@ FairEmail follows all the best practices for an email client as decribed in [thi * [(125) What are the current experimental features?](#user-content-faq125) * [(126) What does 'User is authenticated but not connected' mean?](#user-content-faq126) * [(127) How can I fix 'Syntactically invalid HELO argument(s)'?](#user-content-faq127) +* [(128) How can I reset asked questions, for example to show images?](#user-content-faq128) [I have another question.](#support) @@ -2047,12 +2048,12 @@ Reverted [commit](https://github.com/M66B/FairEmail/commit/2c80c25b8aa75af2287f4
-**(116) How can I show images in messages from trusted senders by default?** +**~~(116) How can I show images in messages from trusted senders by default?~~** -You can show images in messages from trusted senders by default by enabled the display setting *Automatically show images for known contacts*. +~~You can show images in messages from trusted senders by default by enabled the display setting *Automatically show images for known contacts*.~~ -Contacts in the Android contacts list are considered to be known and trusted, -unless the contact is in the group / has the label '*Untrusted*' (case insensitive). +~~Contacts in the Android contacts list are considered to be known and trusted,~~ +~~unless the contact is in the group / has the label '*Untrusted*' (case insensitive).~~
@@ -2172,6 +2173,13 @@ You can likely fix the error *Syntactically invalid HELO argument(s)* by disabli
+ +**(128) How can I reset asked questions, for example to show images?** + +You can reset asked questions via the three dots overflow menu in the miscellaneous settings. + +
+ ## Support If you have another question, want to request a feature or report a bug, you can use [this forum](https://forum.xda-developers.com/android/apps-games/source-email-t3824168). diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 77ec64b4aa..6007d737f1 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -190,8 +190,6 @@ public class AdapterMessage extends RecyclerView.Adapter froms = new ArrayList<>(); + for (Address address : message.from) + froms.add(((InternetAddress) address).getAddress()); + cbNotAgain.setText(context.getString(R.string.title_no_ask_for_again, + TextUtils.join(", ", froms))); + } // TODO: dialog fragment final Dialog dialog = new AlertDialog.Builder(context) @@ -2008,8 +2006,16 @@ public class AdapterMessage extends RecyclerView.Adapter() { @Override diff --git a/app/src/main/res/layout/fragment_options_display.xml b/app/src/main/res/layout/fragment_options_display.xml index 53cea4fcfa..1e95be61ba 100644 --- a/app/src/main/res/layout/fragment_options_display.xml +++ b/app/src/main/res/layout/fragment_options_display.xml @@ -319,66 +319,6 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/swImagesInline" /> - - - - - - - - - - Use high contrast for message text Use monospaced font for message text Automatically show inline images - Automatically show images for known contacts - Automatically show all images Collapse quoted text Automatically show remote content when viewing original messages Conversation action bar @@ -323,7 +321,6 @@ When disabled only names will be shown when available Only available when message text has been downloaded Inline images are images included in the message - This requires granting permission to read your contacts Automatically open message when there is just one message or just one unread message in a conversation Multiple expanded messages will always be closed on \'back\' @@ -791,6 +788,7 @@ Completed Ask what to do Do not ask this again + Do not ask this again for %1$s No message text found Unsupported encoding: %1$s Via: %1$s