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

Commit b24884e3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Enforce at least 64 fallback capacity for custom font fallback."

parents 0eca3fe5 6b160006
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -655,10 +655,11 @@ public class Typeface {
         * Returns the maximum capacity of custom fallback families.
         * Returns the maximum capacity of custom fallback families.
         *
         *
         * This includes the the first font family passed to the constructor.
         * 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
         * @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;
            return MAX_CUSTOM_FALLBACK;
        }
        }