From 8c5d26643e8b764581f0e09d019ba332062b4306 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 27 Jan 2019 17:30:15 +0000 Subject: [PATCH] Added setting to automatically show images for known contacts --- FAQ.md | 3 ++ .../eu/faircode/email/AdapterMessage.java | 42 +++++++++---------- .../eu/faircode/email/FragmentOptions.java | 12 +++++- app/src/main/res/layout/fragment_options.xml | 14 ++++++- app/src/main/res/values/strings.xml | 1 + 5 files changed, 48 insertions(+), 24 deletions(-) diff --git a/FAQ.md b/FAQ.md index 9fb68e14cc..4aa43b8d41 100644 --- a/FAQ.md +++ b/FAQ.md @@ -226,6 +226,7 @@ In the display section of the advanced settings you can enable or disable: * *Show message preview*: to show two lines of the message text * *Show address details by default*: to collapse the addresses section by default * *Conversation action bar*: to disable the bottom navigation bar +* *Automatically show images for known contacts*: to automatically show images for contacts on your device, please read [this FAQ](#user-content-faq35) Note that messages can be previewed only when the message text was downloaded. Larger message texts are not downloaded by default on metered (generally mobile) networks. @@ -641,6 +642,8 @@ but will also leak your IP address. Opening attachments or viewing an original message might execute scripts, that might not only cause privacy sensitive information to leak, but can also be a security risk. +Note that your contacts could unknowingly send malicious messages if they got infected with malware. +
diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 4897959afc..64c8fc837a 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -133,6 +133,7 @@ public class AdapterMessage extends RecyclerView.Adapter() { @Override protected void onPreExecute(Bundle args) { - ivAvatar.setTag(message.id); - tvFrom.setTag(message.id); - + itemView.setTag(message.id); ivAvatar.setVisibility(avatars ? View.INVISIBLE : View.GONE); tvFrom.setText(MessageHelper.formatAddresses(addresses, !compact, false)); } @@ -515,17 +514,8 @@ public class AdapterMessage extends RecyclerView.Adapter + + Show identicons Show message preview Show address details by default + Automatically show images for known contacts Conversation action bar Use notification light