mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Refactoring
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user