diff options
Diffstat (limited to 'tools/layoutlib/bridge/src/android/content/res/BridgeAssetManager.java')
-rw-r--r-- | tools/layoutlib/bridge/src/android/content/res/BridgeAssetManager.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/layoutlib/bridge/src/android/content/res/BridgeAssetManager.java b/tools/layoutlib/bridge/src/android/content/res/BridgeAssetManager.java index c41a4ee..2691e56 100644 --- a/tools/layoutlib/bridge/src/android/content/res/BridgeAssetManager.java +++ b/tools/layoutlib/bridge/src/android/content/res/BridgeAssetManager.java @@ -16,12 +16,13 @@ package android.content.res; +import com.android.ide.common.rendering.api.AssetRepository; import com.android.layoutlib.bridge.Bridge; -import android.content.res.AssetManager; - public class BridgeAssetManager extends AssetManager { + private AssetRepository mAssetRepository; + /** * This initializes the static field {@link AssetManager#sSystem} which is used * by methods who get a global asset manager using {@link AssetManager#getSystem()}. @@ -48,6 +49,14 @@ public class BridgeAssetManager extends AssetManager { AssetManager.sSystem = null; } - private BridgeAssetManager() { + public void setAssetRepository(AssetRepository assetRepository) { + mAssetRepository = assetRepository; + } + + public AssetRepository getAssetRepository() { + return mAssetRepository; + } + + public BridgeAssetManager() { } } |