From cb9606770fd8c80ea0d2317cf5de72312a95d829 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 1 May 2020 20:04:22 +0200 Subject: [PATCH] Fixed list item number --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index aa2ad5098d..94a34d7883 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -1988,7 +1988,8 @@ public class HtmlHelper { else { int index = 0; for (Node child : parent.childNodes()) { - if (child instanceof Element) { + if (child instanceof Element && + child.nodeName().equals(element.tagName())) { index++; if (child == element) break;