From 08d2007b33838570a96c8df890f0757fa920904c 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 a0fc1f46264e316449402525fbeb033138ec5f49) --- .../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 3fcd9874dbdae..efcb35ce5c812 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 @@ -560,7 +560,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);