fix(android): image tintColor setter (#10516)

closes https://github.com/NativeScript/NativeScript/issues/10515
This commit is contained in:
Nathan Walker
2024-04-15 12:02:18 -07:00
committed by GitHub
parent 92b2ff83a0
commit 7e1cb19084

View File

@ -161,10 +161,10 @@ export class Image extends ImageBase {
return undefined;
}
[tintColorProperty.setNative](value: Color) {
if (value === undefined) {
this.nativeViewProtected.clearColorFilter();
} else {
if (value) {
this.nativeViewProtected.setColorFilter(value.android);
} else {
this.nativeViewProtected.clearColorFilter();
}
}