Merge "Fix custom font rendering" into mnc-ub-dev

This commit is contained in:
Deepanshu Gupta
2016-01-14 23:48:17 +00:00
committed by Android (Google) Code Review

View File

@@ -196,7 +196,12 @@ public final class BridgeContext extends Context {
mRenderResources = renderResources;
mConfig = config;
mAssets = new BridgeAssetManager();
AssetManager systemAssetManager = AssetManager.getSystem();
if (systemAssetManager instanceof BridgeAssetManager) {
mAssets = (BridgeAssetManager) systemAssetManager;
} else {
throw new AssertionError("Creating BridgeContext without initializing Bridge");
}
mAssets.setAssetRepository(assets);
mApplicationInfo = new ApplicationInfo();