From f8676e56c425a60a3d0d16b8cc20d212e3c51208 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 29 May 2023 18:52:04 +0200 Subject: [PATCH] Added confirming files --- .../eu/faircode/email/AdapterAttachment.java | 49 +++++++++++++++++ .../faircode/email/FragmentOptionsMisc.java | 12 ++-- .../email/FragmentOptionsPrivacy.java | 18 +++++- .../res/layout/dialog_reset_questions.xml | 20 +++++-- app/src/main/res/layout/dialog_view_file.xml | 55 +++++++++++++++++++ .../res/layout/fragment_options_privacy.xml | 14 ++++- app/src/main/res/values/strings.xml | 7 ++- 7 files changed, 161 insertions(+), 14 deletions(-) create mode 100644 app/src/main/res/layout/dialog_view_file.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterAttachment.java b/app/src/main/java/eu/faircode/email/AdapterAttachment.java index ec83dee502..6e66c0e0ec 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAttachment.java +++ b/app/src/main/java/eu/faircode/email/AdapterAttachment.java @@ -20,6 +20,7 @@ package eu.faircode.email; */ import android.content.Context; +import android.content.DialogInterface; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.Typeface; @@ -30,6 +31,8 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; +import android.widget.CheckBox; +import android.widget.CompoundButton; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.ProgressBar; @@ -37,6 +40,7 @@ import android.widget.TextView; import android.widget.Toast; import androidx.annotation.NonNull; +import androidx.appcompat.app.AlertDialog; import androidx.appcompat.widget.PopupMenu; import androidx.core.app.ShareCompat; import androidx.fragment.app.Fragment; @@ -387,6 +391,51 @@ public class AdapterAttachment extends RecyclerView.Adapter + + + app:layout_constraintTop_toBottomOf="@id/cbFiles" /> diff --git a/app/src/main/res/layout/dialog_view_file.xml b/app/src/main/res/layout/dialog_view_file.xml new file mode 100644 index 0000000000..be312606db --- /dev/null +++ b/app/src/main/res/layout/dialog_view_file.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_options_privacy.xml b/app/src/main/res/layout/fragment_options_privacy.xml index 9c4c653e17..f4a6ec6892 100644 --- a/app/src/main/res/layout/fragment_options_privacy.xml +++ b/app/src/main/res/layout/fragment_options_privacy.xml @@ -138,6 +138,18 @@ app:layout_constraintTop_toBottomOf="@id/tvSanitizeLinksHint" app:switchPadding="12dp" /> + + Reset questions General questions - Show original messages - Show images Confirm links + View files + Show images + Show original messages Your Gmail accounts will continue to work after May 30, 2022 Some of your Gmail accounts may stop working after May 30, 2022 @@ -728,6 +729,7 @@ S/MIME Confirm opening links + Confirm viewing files Remove tracking parameters by default Only when confirming links Check domain block lists for suspicious links @@ -1499,6 +1501,7 @@ Images recognized as tracking images will not be shown Show AMP variant of the message? AMP messages are designed to be dynamic and to interact with the internet and can therefore by definition used to track you + View file %1$s ? Delete local messages? Messages will remain on the remote server. Help improve FairEmail Send error reports?