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

am: f5984d5fce

* commit 'f5984d5fce511a669e8d4bb6eaeb9679ff2ba9f0':
  Fix custom font rendering
This commit is contained in:
Deepanshu Gupta
2016-01-15 00:19:08 +00:00
committed by android-build-merger

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();