summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2014-02-18 20:21:24 -0800
committerDeepanshu Gupta <deepanshu@google.com>2014-02-18 20:21:24 -0800
commit8250a825c39a2f1f63920669cf233db3d8944b51 (patch)
tree38a4cfaddb9da517e31f3e13b932f455a43ea3ba /tools
parent5441745effb885589c03050b59885e8a3ad96ad6 (diff)
downloadframeworks_base-8250a825c39a2f1f63920669cf233db3d8944b51.zip
frameworks_base-8250a825c39a2f1f63920669cf233db3d8944b51.tar.gz
frameworks_base-8250a825c39a2f1f63920669cf233db3d8944b51.tar.bz2
Add ability to obtain themed Drawable from Context
This is to fix the rendering in layoutlib broken due to 8eea3ea5591e59f55cbb4f6b2b7e9363a285ced3 Change-Id: I3da6691ad86502bd4fa4b302deb381a840b94655
Diffstat (limited to 'tools')
-rw-r--r--tools/layoutlib/bridge/src/android/content/res/BridgeResources.java5
1 files changed, 5 insertions, 0 deletions
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 @@ public final class BridgeResources extends Resources {
@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) {