Merge "Fix custom font rendering" into mnc-ub-dev
am: f5984d5fce
* commit 'f5984d5fce511a669e8d4bb6eaeb9679ff2ba9f0':
Fix custom font rendering
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user