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

Commit 73979a88 authored by Kohsuke Yatoh's avatar Kohsuke Yatoh Committed by Android (Google) Code Review
Browse files

Merge "Do not load Typefaces twice in system server."

parents 99e49715 f0acf2f1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -680,7 +680,9 @@ public final class SystemServer implements Dumpable {
            // Load preinstalled system fonts for system server, so that WindowManagerService, etc
            // can start using Typeface. Note that fonts are required not only for text rendering,
            // but also for some text operations (e.g. TextUtils.makeSafeForPresentation()).
            if (Typeface.ENABLE_LAZY_TYPEFACE_INITIALIZATION) {
                Typeface.loadPreinstalledSystemFontMap();
            }

            // Attach JVMTI agent if this is a debuggable build and the system property is set.
            if (Build.IS_DEBUGGABLE) {