Fix crash with FontProvider

Need to freeze the FontFamily otherwise the FontFamily is not created.

Test: manually done
Change-Id: I81a6f0d295f13bbeb059deafb4283654f97c0090
This commit is contained in:
Seigo Nonaka
2017-01-25 22:25:10 +09:00
parent 954cfce18d
commit c65ea181da

View File

@@ -237,6 +237,7 @@ public class Typeface {
IoUtils.closeQuietly(fd);
}
}
fontFamily.freeze();
callback.onTypefaceRetrieved(Typeface.createFromFamiliesWithDefault(
new FontFamily[] {fontFamily}));
}