mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
fix(android): image tintColor setter (#10516)
closes https://github.com/NativeScript/NativeScript/issues/10515
This commit is contained in:
@ -161,10 +161,10 @@ export class Image extends ImageBase {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
[tintColorProperty.setNative](value: Color) {
|
[tintColorProperty.setNative](value: Color) {
|
||||||
if (value === undefined) {
|
if (value) {
|
||||||
this.nativeViewProtected.clearColorFilter();
|
|
||||||
} else {
|
|
||||||
this.nativeViewProtected.setColorFilter(value.android);
|
this.nativeViewProtected.setColorFilter(value.android);
|
||||||
|
} else {
|
||||||
|
this.nativeViewProtected.clearColorFilter();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user