|
|
@ -1934,12 +1934,13 @@ public class HtmlHelper {
|
|
|
|
String value = param.substring(semi + 1);
|
|
|
|
String value = param.substring(semi + 1);
|
|
|
|
switch (key) {
|
|
|
|
switch (key) {
|
|
|
|
case "color":
|
|
|
|
case "color":
|
|
|
|
try {
|
|
|
|
if (!TextUtils.isEmpty(value))
|
|
|
|
int color = Integer.parseInt(value.substring(1), 16) | 0xFF000000;
|
|
|
|
try {
|
|
|
|
ssb.setSpan(new ForegroundColorSpan(color), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
int color = Integer.parseInt(value.substring(1), 16) | 0xFF000000;
|
|
|
|
} catch (NumberFormatException ex) {
|
|
|
|
ssb.setSpan(new ForegroundColorSpan(color), start, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
|
|
|
Log.w(ex);
|
|
|
|
} catch (NumberFormatException ex) {
|
|
|
|
}
|
|
|
|
Log.w(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "text-decoration":
|
|
|
|
case "text-decoration":
|
|
|
|
if ("line-through".equals(value))
|
|
|
|
if ("line-through".equals(value))
|
|
|
|