From f5d585a7fe1c05f2b8f165f727ca8e6fc0fb7de2 Mon Sep 17 00:00:00 2001 From: Alexander Vakrilov Date: Fri, 3 Feb 2017 11:24:29 +0200 Subject: [PATCH] Android: ActionBar transparent background crashes Resolves #3565 --- tns-core-modules/ui/styling/style.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tns-core-modules/ui/styling/style.ts b/tns-core-modules/ui/styling/style.ts index cc9b135d4..346339491 100644 --- a/tns-core-modules/ui/styling/style.ts +++ b/tns-core-modules/ui/styling/style.ts @@ -1400,9 +1400,9 @@ export class StylePropertyChangedHandler { } if (application.android) { - newValue = newValue.android ? newValue.android : newValue; + newValue = types.isDefined(newValue.android) ? newValue.android : newValue; } else if (application.ios) { - newValue = newValue.ios ? newValue.ios : newValue; + newValue = types.isDefined(newValue.ios) ? newValue.ios : newValue; } this._applyProperty(view, newValue, _defaultNativeValuesCache[className + property.id]);