From 66ac3382eeb86dc5252b2e42e461659dffbba6b9 Mon Sep 17 00:00:00 2001 From: Dimitry Ivanov Date: Tue, 14 Aug 2018 11:24:11 +0300 Subject: [PATCH] Fix table border color if odd background if specified --- .../src/main/java/ru/noties/markwon/spans/TableRowSpan.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/src/main/java/ru/noties/markwon/spans/TableRowSpan.java b/library/src/main/java/ru/noties/markwon/spans/TableRowSpan.java index 552af486..5dd1cd69 100644 --- a/library/src/main/java/ru/noties/markwon/spans/TableRowSpan.java +++ b/library/src/main/java/ru/noties/markwon/spans/TableRowSpan.java @@ -169,6 +169,10 @@ public class TableRowSpan extends ReplacementSpan { } } + // @since 1.1.1 reset after applying background color + // as background changes color attribute and if not specific tableBorderColor + // is specified then after this row all borders will have color of this row (plus alpha) + this.paint.set(paint); theme.applyTableBorderStyle(this.paint); final int borderWidth = theme.tableBorderWidth(paint);