Loading core/java/android/widget/TextView.java +2 −0 Original line number Diff line number Diff line Loading @@ -2031,6 +2031,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener Typeface tf = fontTypeface; if (tf == null && familyName != null) { tf = Typeface.create(familyName, styleIndex); } else if (tf != null && tf.getStyle() != styleIndex) { tf = Typeface.create(tf, styleIndex); } if (tf != null) { setTypeface(tf); Loading Loading
core/java/android/widget/TextView.java +2 −0 Original line number Diff line number Diff line Loading @@ -2031,6 +2031,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener Typeface tf = fontTypeface; if (tf == null && familyName != null) { tf = Typeface.create(familyName, styleIndex); } else if (tf != null && tf.getStyle() != styleIndex) { tf = Typeface.create(tf, styleIndex); } if (tf != null) { setTypeface(tf); Loading