From 60a6c9b12d373b798f302a6cdbf5afcddefe5ea8 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Tue, 17 May 2016 16:12:16 +0300 Subject: [PATCH] android background reset fixed --- ui/styling/background.android.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/styling/background.android.ts b/ui/styling/background.android.ts index ed67b01bb..1390732da 100644 --- a/ui/styling/background.android.ts +++ b/ui/styling/background.android.ts @@ -241,13 +241,13 @@ export module ad { var bkg = nativeView.getBackground(); if (v instanceof button.Button && !types.isNullOrUndefined(bkg) && types.isFunction(bkg.setColorFilter) && - v.borderWidth === 0 && v.borderRadius === 0 && + v.borderWidth === 0 && v.borderRadius === 0 && !clipPathValue && types.isNullOrUndefined(v.style._getValue(style.backgroundImageProperty)) && !types.isNullOrUndefined(v.style._getValue(style.backgroundColorProperty))) { let backgroundColor = bkg.backgroundColor = v.style._getValue(style.backgroundColorProperty).android; bkg.setColorFilter(backgroundColor, android.graphics.PorterDuff.Mode.SRC_IN); bkg.backgroundColor = backgroundColor; - } else if (v.borderWidth !== 0 || v.borderRadius !== 0 || !backgroundValue.isEmpty() || !clipPathValue.isEmpty()) { + } else if (v.borderWidth !== 0 || v.borderRadius !== 0 || !backgroundValue.isEmpty() || clipPathValue) { if (!(bkg instanceof BorderDrawableClass)) { bkg = new BorderDrawableClass();