From e5cd9b21c5eee2065e3dc6843350a02b600e75ff Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 29 Sep 2020 15:08:09 +0200 Subject: [PATCH] Fixed removing Usenet signature in some cases --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index f1abe5cebe..1c6c4931c3 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -3718,6 +3718,11 @@ public class FragmentCompose extends FragmentBase { remove = true; else { Node next = node.nextSibling(); + if (next == null) { + Node parent = node.parent(); + if (parent != null) + next = parent.nextSibling(); + } if (next != null && "br".equals(next.nodeName())) remove = true; }