mirror of https://github.com/M66B/FairEmail.git
Refactoring
This commit is contained in:
parent
1c0535ec32
commit
c8ff81943f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue