From 6bb875cb8e405e007e47af5532005013b995939d Mon Sep 17 00:00:00 2001 From: vakrilov Date: Mon, 6 Jul 2015 14:43:40 +0300 Subject: [PATCH] COde cleanup --- apps/tests/ui/button/button-tests-native.android.ts | 1 - apps/tests/ui/text-field/text-field-tests-native.android.ts | 1 - apps/tests/ui/text-view/text-view-tests-native.android.ts | 1 - ui/styling/background.android.ts | 4 ++-- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/tests/ui/button/button-tests-native.android.ts b/apps/tests/ui/button/button-tests-native.android.ts index c63dc07f0..c88e28441 100644 --- a/apps/tests/ui/button/button-tests-native.android.ts +++ b/apps/tests/ui/button/button-tests-native.android.ts @@ -19,7 +19,6 @@ export function getNativeColor(button: buttonModule.Button): colorModule.Color { export function getNativeBackgroundColor(button: buttonModule.Button): colorModule.Color { var bkg = button.android.getBackground(); - var color; if (bkg instanceof background.ad.BorderDrawable) { return (bkg).background.color; } diff --git a/apps/tests/ui/text-field/text-field-tests-native.android.ts b/apps/tests/ui/text-field/text-field-tests-native.android.ts index d719dbe3f..235d83a19 100644 --- a/apps/tests/ui/text-field/text-field-tests-native.android.ts +++ b/apps/tests/ui/text-field/text-field-tests-native.android.ts @@ -28,7 +28,6 @@ export function getNativeColor(textField: textFieldModule.TextField): colorModul export function getNativeBackgroundColor(textField: textFieldModule.TextField): colorModule.Color { var bkg = textField.android.getBackground(); - var color; if (bkg instanceof background.ad.BorderDrawable) { return (bkg).background.color; } diff --git a/apps/tests/ui/text-view/text-view-tests-native.android.ts b/apps/tests/ui/text-view/text-view-tests-native.android.ts index ecca78ad6..f5ea9a7e9 100644 --- a/apps/tests/ui/text-view/text-view-tests-native.android.ts +++ b/apps/tests/ui/text-view/text-view-tests-native.android.ts @@ -32,7 +32,6 @@ export function getNativeColor(textView: textViewModule.TextView): colorModule.C export function getNativeBackgroundColor(textView: textViewModule.TextView): colorModule.Color { var bkg = textView.android.getBackground(); - var color; if (bkg instanceof background.ad.BorderDrawable) { return (bkg).background.color; } diff --git a/ui/styling/background.android.ts b/ui/styling/background.android.ts index b784583b3..6c4a2f3f2 100644 --- a/ui/styling/background.android.ts +++ b/ui/styling/background.android.ts @@ -55,7 +55,6 @@ export module ad { set background(value: common.Background) { if (this._background !== value) { this._background = value; - this.invalidateSelf(); } } @@ -123,7 +122,8 @@ export module ad { let borderPaint = new android.graphics.Paint(); borderPaint.setStyle(android.graphics.Paint.Style.STROKE); borderPaint.setColor(this._borderColor); - // Notes double the stroke as the outer part will be clipped + + // Note: Double the stroke as the outer part will be clipped. borderPaint.setStrokeWidth(stroke * 2); canvas.drawRoundRect(boundsF, radius, radius, borderPaint) }