From a38e2ca3b905a638c773352c98c5afa1ec99a5b6 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 15 Sep 2021 10:04:26 -0700 Subject: [PATCH] fix(android): background-image 'none' (#9547) closes https://github.com/NativeScript/NativeScript/issues/9546 --- packages/core/ui/styling/background.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/ui/styling/background.android.ts b/packages/core/ui/styling/background.android.ts index 2c7cca21c..5449a5255 100644 --- a/packages/core/ui/styling/background.android.ts +++ b/packages/core/ui/styling/background.android.ts @@ -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]) {