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

Commit 6b160006 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Enforce at least 64 fallback capacity for custom font fallback.

Bug: 119620208
Test: atest TypefaceCustomFallbackBuilderTest
Change-Id: Ibf1eaac97a4f940f00ef117f7fb386f72b67b6c5
parent 09c07c35
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -655,10 +655,11 @@ public class Typeface {
         * Returns the maximum capacity of custom fallback families.
         *
         * This includes the the first font family passed to the constructor.
         * It is guaranteed that the value will be greater than or equal to 64.
         *
         * @return the maximum number of font families for the custom fallback
         */
        public static @IntRange(from = 1) int getMaxCustomFallbackCount() {
        public static @IntRange(from = 64) int getMaxCustomFallbackCount() {
            return MAX_CUSTOM_FALLBACK;
        }