Skip to content

Commit 359d908

Browse files
author
farfromrefug
committed
fix(textview,android): strokeColor was not applied correctly
1 parent 22ff0aa commit 359d908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textview/textview.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class TextView extends TextViewBase {
230230
const layoutView = this.layoutView;
231231
if (layoutView.setBoxStrokeColorStateList) {
232232
const activeColor = this.strokeColor instanceof Color ? this.strokeColor.android : layoutView.getBoxStrokeColor();
233-
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
233+
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : activeColor;
234234
const colorStateList = getFullColorStateList(activeColor, inactiveColor, color);
235235
layoutView.setBoxStrokeColorStateList(colorStateList);
236236
}
@@ -240,7 +240,7 @@ export class TextView extends TextViewBase {
240240
const color = value instanceof Color ? value.android : value;
241241
const layoutView = this.layoutView;
242242
if (layoutView.setBoxStrokeColorStateList) {
243-
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
243+
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : color;
244244
const disabledColor = this.strokeDisabledColor instanceof Color ? this.strokeDisabledColor.android : undefined;
245245
const colorStateList = getFullColorStateList(color, inactiveColor, disabledColor);
246246
if (colorStateList) {

0 commit comments

Comments
 (0)