From c1b4c0d19d5d908a899c6d81e8ff757eedb599e3 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 11 Dec 2021 23:04:32 +0100 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 01431903c0..b465fa2370 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -4923,7 +4923,6 @@ public class FragmentCompose extends FragmentBase { "forward".equals(action) || "resend".equals(action) || "editasnew".equals(action))) { - List cid = new ArrayList<>(); for (Element img : document.select("img")) { String src = img.attr("src"); @@ -4936,9 +4935,7 @@ public class FragmentCompose extends FragmentBase { for (EntityAttachment attachment : attachments) if (!attachment.isEncryption() && (cid.contains(attachment.cid) || - "forward".equals(action) || - "resend".equals(action) || - "editasnew".equals(action))) { + !("reply".equals(action) || "reply_all".equals(action)))) { if (attachment.available) { File source = attachment.getFile(context); @@ -4958,9 +4955,7 @@ public class FragmentCompose extends FragmentBase { Helper.copy(source, target); if (resize_reply && - !("forward".equals(action) || - "resend".equals(action) || - "editasnew".equals(action))) + ("reply".equals(action) || "reply_all".equals(action))) resizeAttachment(context, attachment, REDUCED_IMAGE_SIZE); } else args.putBoolean("incomplete", true);