Merge "Introduce early exit path for non resource path." into oc-dev am: 01d5b3d2af

am: 99c587a9b1

Change-Id: I7e09b074f7fff0f273ca2be896439bae0c0c92d0
This commit is contained in:
Seigo Nonaka
2017-05-18 23:54:24 +00:00
committed by android-build-merger
9 changed files with 333 additions and 0 deletions

View File

@@ -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;