From 3b7c09b4336f421c489523c10278ecfbfb0708a7 Mon Sep 17 00:00:00 2001 From: Deepanshu Gupta Date: Thu, 15 May 2014 17:37:34 -0700 Subject: [PATCH] LayoutLib: Correctly resolve ?attr/foo [DO NOT MERGE] ?attr/foo in platform files wasn't resolved properly. The IDE checked the app namespace for the attribute even though it is being referenced from a platform file. Change-Id: I7db6dfef5b540d99804c298120578da9d060b886 (cherry picked from commit 08d2007b33838570a96c8df890f0757fa920904c) --- .../src/com/android/layoutlib/bridge/android/BridgeContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 78ae102de27cd..b8578833e5239 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 @@ -554,7 +554,7 @@ public final class BridgeContext extends Context { StyleResourceValue customStyleValues = null; if (customStyle != null) { ResourceValue item = mRenderResources.findResValue(customStyle, - false /*forceFrameworkOnly*/); + isPlatformFile /*forceFrameworkOnly*/); // resolve it in case it links to something else item = mRenderResources.resolveResValue(item);