From 90a4f7c8e18ac2a44907b9ac5ff2d815938f458f Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Mon, 18 Jan 2016 10:53:25 +0200 Subject: [PATCH] yet another fix for the android button background --- ui/styling/background.android.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/styling/background.android.ts b/ui/styling/background.android.ts index 962bb5e3e..24d5580f8 100644 --- a/ui/styling/background.android.ts +++ b/ui/styling/background.android.ts @@ -159,7 +159,9 @@ export module ad { v.borderWidth === 0 && v.borderRadius === 0 && types.isNullOrUndefined(v.style._getValue(style.backgroundImageProperty)) && !types.isNullOrUndefined(v.style._getValue(style.backgroundColorProperty))) { - bkg.setColorFilter(v.style._getValue(style.backgroundColorProperty).android, android.graphics.PorterDuff.Mode.SRC_IN); + 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()) { if (!(bkg instanceof dts.ad.BorderDrawable)) {