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

Commit 6844416a authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Android (Google) Code Review
Browse files

Merge "Reuse computed font mapping for preinstalled system font config." into sc-dev

parents 3d34f830 5f03d0dc
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -219,7 +219,13 @@ public final class FontManagerService extends IFontManager.Stub {
    private void initialize() {
        synchronized (mUpdatableFontDirLock) {
            if (mUpdatableFontDir == null) {
                updateSerializedFontMap();
                synchronized (mSerializedFontMapLock) {
                    try {
                        mSerializedFontMap = Typeface.serializeFontMap(Typeface.getSystemFontMap());
                    } catch (IOException | ErrnoException e) {
                        mSerializedFontMap = null;
                    }
                }
                return;
            }
            if (mFontCrashDetector.hasCrashed()) {