commit | 8250a825c39a2f1f63920669cf233db3d8944b51 | [log] [tgz] |
---|---|---|
author | Deepanshu Gupta <deepanshu@google.com> | Tue Feb 18 20:21:24 2014 -0800 |
committer | Deepanshu Gupta <deepanshu@google.com> | Tue Feb 18 20:21:24 2014 -0800 |
tree | 38a4cfaddb9da517e31f3e13b932f455a43ea3ba | |
parent | 5441745effb885589c03050b59885e8a3ad96ad6 [diff] |
Add ability to obtain themed Drawable from Context This is to fix the rendering in layoutlib broken due to 8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 Change-Id: I3da6691ad86502bd4fa4b302deb381a840b94655
diff --git a/tools/layoutlib/bridge/src/android/content/res/BridgeResources.java b/tools/layoutlib/bridge/src/android/content/res/BridgeResources.java index c3e06d2..dd573be 100644 --- a/tools/layoutlib/bridge/src/android/content/res/BridgeResources.java +++ b/tools/layoutlib/bridge/src/android/content/res/BridgeResources.java
@@ -155,6 +155,11 @@ @Override public Drawable getDrawable(int id) throws NotFoundException { + return getDrawable(id, null); + } + + @Override + public Drawable getDrawable(int id, Theme theme) { Pair<String, ResourceValue> value = getResourceValue(id, mPlatformResourceFlag); if (value != null) {