Refactoring

This commit is contained in:
M66B 2021-07-08 08:18:35 +02:00
parent 1c0535ec32
commit c8ff81943f
1 changed files with 4 additions and 2 deletions

View File

@ -2745,11 +2745,13 @@ public class HtmlHelper {
level--;
if (type == null || "ul".equals(type.tagName())) {
Object ul;
String ltype = element.attr("x-list-style");
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P)
setSpan(ssb, new BulletSpanEx(bulletIndent, bulletGap, colorAccent, level, ltype), start, ssb.length());
ul = new BulletSpanEx(bulletIndent, bulletGap, colorAccent, level, ltype);
else
setSpan(ssb, new BulletSpanEx(bulletIndent, bulletGap, colorAccent, bulletRadius, level, ltype), start, ssb.length());
ul = new BulletSpanEx(bulletIndent, bulletGap, colorAccent, bulletRadius, level, ltype);
setSpan(ssb, ul, start, ssb.length());
} else {
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol
int index = 0;