summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeepanshu Gupta <deepanshu@google.com>2014-09-26 00:59:08 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-26 00:59:08 +0000
commit04861ed488f5aaa62acbaf903e359ea9edd8e9f9 (patch)
tree5b49422f650a42f5e02d044fc86355764f80f481
parentd3328343deaff01cfe5eadf57ac27da30832aabe (diff)
parent91043364b95fe58225437e2220d497ef6e33edf6 (diff)
downloadframeworks_base-04861ed488f5aaa62acbaf903e359ea9edd8e9f9.zip
frameworks_base-04861ed488f5aaa62acbaf903e359ea9edd8e9f9.tar.gz
frameworks_base-04861ed488f5aaa62acbaf903e359ea9edd8e9f9.tar.bz2
am 91043364: am 52be792b: am 27d3b926: Fix error when using list as actionBarNavMode. [DO NOT MERGE]
* commit '91043364b95fe58225437e2220d497ef6e33edf6': Fix error when using list as actionBarNavMode. [DO NOT MERGE]
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java9
1 files changed, 7 insertions, 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 c36afa7..f2f8447 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
@@ -626,10 +626,15 @@ public final class BridgeContext extends Context {
defStyleRes, value.getSecond()),
null /*data*/);
}
+ } else if (value.getFirst() == ResourceType.ATTR) {
+ // Ignore. There's a bug in the framework where sometimes defStyleAttr ends up
+ // in defStyleRes. The framework ignores the attribute when it's not a style.
+ // But to let the developers find bugs in their code, we log an error for other
+ // cases.
} else {
- Bridge.getLog().error(null,
+ Bridge.getLog().warning(null,
String.format(
- "Resouce id 0x%x is not of type STYLE (instead %s)",
+ "Resource id 0x%x is not of type STYLE (instead %s)",
defStyleRes, value.getFirst().toString()),
null /*data*/);
}