Merge "Cache Downloaded Fonts in Typeface"

This commit is contained in:
Clara Bayarri
2017-02-07 15:36:24 +00:00
committed by Android (Google) Code Review
2 changed files with 51 additions and 10 deletions

View File

@@ -753,7 +753,7 @@ public class ResourcesImpl {
}
final String file = value.string.toString();
Typeface cached = Typeface.createFromCache(mAssets, file);
Typeface cached = Typeface.findFromCache(mAssets, file);
if (cached != null) {
return cached;
}