Merge "Introduce early exit path for non resource path." into oc-dev am: 01d5b3d2af
am: 99c587a9b1
Change-Id: I7e09b074f7fff0f273ca2be896439bae0c0c92d0
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