Merge "Introduce early exit path for non resource path." into oc-dev
am: 01d5b3d2af
Change-Id: I07120a86307dd397862e0d341763d0048b066845
This commit is contained in:
@@ -772,6 +772,10 @@ public class ResourcesImpl {
|
||||
}
|
||||
|
||||
final String file = value.string.toString();
|
||||
if (!file.startsWith("res/")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Typeface cached = Typeface.findFromCache(mAssets, file);
|
||||
if (cached != null) {
|
||||
return cached;
|
||||
|
||||
Reference in New Issue
Block a user