Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e07465fa authored by Raph Levien's avatar Raph Levien Committed by Android (Google) Code Review
Browse files

Merge "Resolve invalid Typeface style to default" into lmp-dev

parents 55b0abd7 ff86bcd0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -132,6 +132,9 @@ public class Typeface {
     * @return The best matching typeface.
     */
    public static Typeface create(Typeface family, int style) {
        if (style < 0 || style > 3) {
            style = 0;
        }
        long ni = 0;
        if (family != null) {
            // Return early if we're asked for the same face/style