From 23a3a70a82d1e9f436e09426bbddc821600f383a Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Mon, 21 Nov 2016 11:48:36 +0200 Subject: [PATCH] Fix: Transparent border rendered as black Related to https://github.com/NativeScript/NativeScript/issues/3113 --- .../src/main/java/org/nativescript/widgets/BorderDrawable.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java b/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java index dc861545d..aa6e03f8e 100644 --- a/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java +++ b/android/widgets/src/main/java/org/nativescript/widgets/BorderDrawable.java @@ -367,9 +367,6 @@ public class BorderDrawable extends ColorDrawable { int borderColor = this.getUniformBorderColor(); // iOS and browsers use black when no color is specified. - if (borderColor == Color.TRANSPARENT){ - borderColor = Color.BLACK; - } if (borderWidth > 0) { float halfBorderWidth = borderWidth / 2.0f; RectF middleBoundsF = new RectF(bounds.left + halfBorderWidth, bounds.top + halfBorderWidth, bounds.right - halfBorderWidth, bounds.bottom - halfBorderWidth);