mirror of https://github.com/M66B/FairEmail.git
Fixed list parent
This commit is contained in:
parent
9187824900
commit
3357168ec7
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue