Skip to content

Commit 9d771d9

Browse files
committed
fix(android): faster fontSize property
1 parent c0d76c2 commit 9d771d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/label.android.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ abstract class LabelBase extends View implements LabelViewDefinition {
217217

218218
export class Label extends LabelBase {
219219
nativeViewProtected: com.nativescript.text.TextView;
220-
mHandleFontSize = true;
220+
handleFontSize = true;
221221
mTappable = false;
222222
private mAutoFontSize = false;
223223

@@ -345,7 +345,9 @@ export class Label extends LabelBase {
345345
if (color) {
346346
this.nativeTextViewProtected.setTextColor(color.android);
347347
} else {
348-
this.nativeTextViewProtected.setTextColor(null);
348+
// what to call in this case ? transparent color?
349+
// we cant call with null as we will get a null pointer exception
350+
// this.nativeTextViewProtected.setTextColor(null);
349351
}
350352
}
351353
[fontSizeProperty.setNative](value: number | { nativeSize: number }) {

0 commit comments

Comments
 (0)