From 638f9c1a224500a855567ed029cd26f3ca74a8d9 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 9 Jul 2022 07:57:02 +0200 Subject: [PATCH] Confirm showing images in composer --- .../java/eu/faircode/email/FragmentCompose.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 6739271f93..28b1c60a8c 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -915,8 +915,17 @@ public class FragmentCompose extends FragmentBase { ibReferenceImages.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - ibReferenceImages.setVisibility(View.GONE); - onReferenceImages(); + new AlertDialog.Builder(v.getContext()) + .setMessage(R.string.title_ask_show_image) + .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + ibReferenceImages.setVisibility(View.GONE); + onReferenceImages(); + } + }) + .setNegativeButton(android.R.string.cancel, null) + .show(); } });