10000 fix(android): image tintColor setter (#10516) · CatchABus/NativeScript@7e1cb19 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e1cb19

Browse files
authored
fix(android): image tintColor setter (NativeScript#10516)
closes NativeScript#10515
1 parent 92b2ff8 commit 7e1cb19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/ui/image/index.android.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ export class Image extends ImageBase {
161161
return undefined;
162162
}
163163
[tintColorProperty.setNative](value: Color) {
164-
if (value === undefined) {
165-
this.nativeViewProtected.clearColorFilter();
166-
} else {
164+
if (value) {
167165
this.nativeViewProtected.setColorFilter(value.android);
166+
} else {
167+
this.nativeViewProtected.clearColorFilter();
168168
}
169169
}
170170

0 commit comments

Comments
 (0)
0