Skip to content

Commit 7c0bcff

Browse files
committed
fix(android): fix some edge case font names
1 parent a8f6d28 commit 7c0bcff

File tree

1 file changed

+1
-1
lines changed
  • plugin/platforms/android/java/com/nativescript/label

1 file changed

+1
-1
lines changed

Diff for: plugin/platforms/android/java/com/nativescript/label/Font.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public static SpannableStringBuilder stringBuilderFromHtmlString(Context context
223223
style = split[1];
224224
}
225225
Typeface typeface = createTypeface(context, fontFolder, fontFamily,
226-
style.equals("bold") ? "bold" : "normal", style.equals("bold"), style.equals("italic"));
226+
(style != null) && style.equals("bold") ? "bold" : "normal", (style != null) && style.equals("bold"), (style != null) && style.equals("italic"));
227227

228228
if (typeface == null) {
229229
typeface = Typeface.create(fontFamily, Typeface.NORMAL);

0 commit comments

Comments
 (0)