From 8dcfd4abe898bb2cd7a13edf77d41e4063180652 Mon Sep 17 00:00:00 2001 From: Deepanshu Gupta Date: Mon, 23 Jun 2014 16:48:56 -0700 Subject: Resource resolution bug fix. Fix a bug where "?attr/foo" in framework resources wasn't resolved properly. Change-Id: I9a56974f526774fde79685f668f01021136d68f1 --- .../bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java index 5c51c634fc7f..efd55bf292ae 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java @@ -598,8 +598,7 @@ public final class BridgeContext extends Context { if (item != null) { // item is a reference to a style entry. Search for it. - item = mRenderResources.findResValue(item.getValue(), - false /*forceFrameworkOnly*/); + item = mRenderResources.findResValue(item.getValue(), item.isFramework()); if (item instanceof StyleResourceValue) { defStyleValues = (StyleResourceValue)item; -- cgit v1.2.3-59-g8ed1b