fix(android): background-image 'none' (#9547)

closes https://github.com/NativeScript/NativeScript/issues/9546
This commit is contained in:
Nathan Walker
2021-09-15 10:04:26 -07:00
committed by GitHub
parent a51b628532
commit a38e2ca3b9

View File

@@ -175,7 +175,7 @@ function refreshBorderDrawable(this: void, view: View, borderDrawable: org.nativ
const blackColor = -16777216; //android.graphics.Color.BLACK;
let imageUri: string;
if (background.image && typeof background.image === 'string') {
if (background.image && typeof background.image === 'string' && background.image !== 'none') {
imageUri = background.image;
const match = imageUri.match(pattern);
if (match && match[2]) {