am bcbeaf83: Set default text style in layoutlib as NORMAL [DO NOT MERGE]

* commit 'bcbeaf83ca75e4a819377938fdf3ec1e07fa30a7':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]
This commit is contained in:
Deepanshu Gupta
2014-05-02 19:24:17 +00:00
committed by Android Git Automerger

View File

@@ -103,6 +103,9 @@ public final class Typeface_Delegate {
if (familyName == null) { if (familyName == null) {
familyName = DEFAULT_FAMILY; familyName = DEFAULT_FAMILY;
} }
if (style < 0) {
style = Typeface.NORMAL;
}
Typeface_Delegate newDelegate = new Typeface_Delegate(familyName, style); Typeface_Delegate newDelegate = new Typeface_Delegate(familyName, style);
if (sFontLoader != null) { if (sFontLoader != null) {