am 27d3b926: Fix error when using list as actionBarNavMode. [DO NOT MERGE]

* commit '27d3b9264e2dcfb86400a60891a5e39cdf027d55':
  Fix error when using list as actionBarNavMode. [DO NOT MERGE]
This commit is contained in:
Deepanshu Gupta
2014-09-26 00:36:41 +00:00
committed by Android Git Automerger

View File

@@ -624,10 +624,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*/);
}