mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +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;
|
||||
}
|
||||
[tintColorProperty.setNative](value: Color) {
|
||||
if (value === undefined) {
|
||||
this.nativeViewProtected.clearColorFilter();
|
||||
} else {
|
||||
if (value) {
|
||||
this.nativeViewProtected.setColorFilter(value.android);
|
||||
} else {
|
||||
this.nativeViewProtected.clearColorFilter();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user