OSDN Git Service

Fix error when using list as actionBarNavMode. [DO NOT MERGE]
authorDeepanshu Gupta <deepanshu@google.com>
Thu, 25 Sep 2014 22:42:15 +0000 (15:42 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Thu, 25 Sep 2014 23:00:17 +0000 (23:00 +0000)
commit8bf221bd706a1bcb18f2c14cacbe4edbbc0a3a61
treebf9390aed50054c164364c3ad3223c80f0761580
parent12bbbb2bb71a532f3b3ec59fd9232902420cf3d2
Fix error when using list as actionBarNavMode. [DO NOT MERGE]

A bug in the framework leads to the wrong argument being passed to
defStyleRes when obtaining styled attributes. The framework however just
ignores the attribute in such a case. LayoutLib logs an error to help
developers find bugs in their code.

The bug was seen when using list as the actionBarNavMode.

This change ignores the attribute if it detects that it's the framework
bug. Also, we change the error to a warning.

Change-Id: I58e1fe4469de0329a27b577d75c0a59c48d0381b
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java