diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2014-05-15 17:37:34 -0700 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2014-05-15 17:37:34 -0700 |
commit | fba1dd24bf7b56071490ac62428f96d14f682244 (patch) | |
tree | e063cc1209c8dfd2a677803231c4afa6b17ef397 /tools | |
parent | 4a644e390359a1715c88f54ed0174ffb5113d617 (diff) | |
download | frameworks_base-fba1dd24bf7b56071490ac62428f96d14f682244.zip frameworks_base-fba1dd24bf7b56071490ac62428f96d14f682244.tar.gz frameworks_base-fba1dd24bf7b56071490ac62428f96d14f682244.tar.bz2 |
LayoutLib: Correctly resolve ?attr/foo
?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
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java | 2 |
1 files changed, 1 insertions, 1 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 08e9d99..fde4e1a 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 @@ -567,7 +567,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); |