From 3a25a5f6685ac72946ec8cd0bdebe29f5af41800 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 21 Jan 2020 13:05:45 +0100 Subject: [PATCH] Added reply all/forward hint --- .../java/eu/faircode/email/FragmentMessages.java | 15 ++++++++++++++- .../eu/faircode/email/FragmentOptionsMisc.java | 2 +- app/src/main/res/values/strings.xml | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index b341a788e0..c96816c8fd 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -872,7 +872,20 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. fabReply.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - onReply("reply"); + boolean reply_hint = prefs.getBoolean("reply_hint", false); + if (reply_hint) + onReply("reply"); + else + new AlertDialog.Builder(getContext()) + .setMessage(R.string.title_reply_hint) + .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + prefs.edit().putBoolean("reply_hint", true).apply(); + onReply("reply"); + } + }) + .show(); } }); diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java index c16f880d26..8c8acbcac2 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsMisc.java @@ -78,7 +78,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc private final static String[] RESET_QUESTIONS = new String[]{ "welcome", "crash_reports_asked", "review_asked", "review_later", "why", - "html_always_images", "print_html_confirmed", + "reply_hint", "html_always_images", "print_html_confirmed", "identities_asked", "cc_bcc", "inline_image_hint", "compose_reference", "send_dialog", "setup_advanced" }; diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c3bcaac8a3..07442b5f86 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -688,6 +688,7 @@ Help improve FairEmail Send error reports? Error reporting will help improve FairEmail + You can reply to all, forward, etc via the double arrow action menu just below the message header Please review FairEmail