Color workaroud fix

This commit is contained in:
M66B 2020-01-23 09:03:04 +01:00
parent 54641c417e
commit 89ee4e238c
1 changed files with 2 additions and 2 deletions

View File

@ -367,10 +367,10 @@ public class HtmlHelper {
try {
color = Color.parseColor(c);
} catch (IllegalArgumentException ex) {
color = Integer.decode(c) | 0xFF000000;
color = Integer.decode("#" + c) | 0xFF000000;
}
} catch (Throwable ex) {
Log.e("Color=" + c);
Log.e("Color=" + c + ": " + ex);
}
if (color != null && !(dark && color == Color.BLACK)) {