Skip to content

Commit dd21157

Browse files
committed
fix color changes
1 parent ef8b6de commit dd21157

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/stroketext/StrokeTextView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public void setTextColor(String color) {
137137
int parsedColor = parseColor(color);
138138
if (this.textColor != parsedColor) {
139139
this.textColor = parsedColor;
140+
layoutDirty = true;
140141
invalidate();
141142
}
142143
}
@@ -145,6 +146,7 @@ public void setStrokeColor(String color) {
145146
int parsedColor = parseColor(color);
146147
if (this.strokeColor != parsedColor) {
147148
this.strokeColor = parsedColor;
149+
layoutDirty = true;
148150
invalidate();
149151
}
150152
}

0 commit comments

Comments
 (0)