Fixed list parent

This commit is contained in:
M66B 2020-10-02 19:13:59 +02:00
parent 9187824900
commit 3357168ec7
1 changed files with 4 additions and 0 deletions

View File

@ -2167,6 +2167,10 @@ public class HtmlHelper {
ssb.append("\n"); ssb.append("\n");
Element parent = element.parent(); Element parent = element.parent();
while (parent != null &&
!"ol".equals(parent.tagName()) &&
!"ul".equals(parent.tagName()))
parent = parent.parent();
if (parent == null || "ul".equals(parent.tagName())) if (parent == null || "ul".equals(parent.tagName()))
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P)
setSpan(ssb, new BulletSpan(dp6, colorAccent), start, ssb.length()); setSpan(ssb, new BulletSpan(dp6, colorAccent), start, ssb.length());