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

Commit 59897ec4 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Revive old private api for saving supportlib-v27

The method signature of the createFromFamiliesWithDefault is changed
for supporting multiple font fallback. The old method is used by
supportlib-v27.

Bug: 73981003
Test: Manually done
Change-Id: I45ee9975b0f15481b60362113b89d4a1bf5a5338
parent b90670cf
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -882,6 +882,15 @@ public class Typeface {
                ptrArray, RESOLVE_BY_FONT_TABLE, RESOLVE_BY_FONT_TABLE));
    }

    /**
     * This method is used by supportlib-v27.
     * TODO: Remove private API use in supportlib: http://b/72665240
     */
    private static Typeface createFromFamiliesWithDefault(FontFamily[] families, int weight,
                int italic) {
        return createFromFamiliesWithDefault(families, DEFAULT_FAMILY, weight, italic);
    }

    /**
     * Create a new typeface from an array of font families, including
     * also the font families in the fallback list.