mirror of https://github.com/M66B/FairEmail.git
Encode black without alpha
This commit is contained in:
parent
afb86509fa
commit
97ad2e7ff5
|
@ -1772,7 +1772,7 @@ public class HtmlHelper {
|
|||
static String encodeWebColor(int color) {
|
||||
int alpha = Color.alpha(color);
|
||||
int rgb = 0xFFFFFF & color;
|
||||
if (alpha == 255)
|
||||
if (alpha == 255 || rgb == 0)
|
||||
return String.format("#%06X", rgb);
|
||||
else
|
||||
return String.format("#%06X%02X", rgb, alpha);
|
||||
|
|
Loading…
Reference in New Issue