OSDN Git Service

Skip warnings for some unresolved references. [DO NOT MERGE]
authorDeepanshu Gupta <deepanshu@google.com>
Wed, 27 May 2015 19:35:56 +0000 (12:35 -0700)
committerDeepanshu Gupta <deepanshu@google.com>
Tue, 25 Aug 2015 19:06:48 +0000 (12:06 -0700)
commit4f5e6c631522649796413c63695ae45b8759eba8
treea6e2569b9cb80158f9701fcd0e9d1a541499e398
parent3e875dbb38c812e3684193fdefa04433c84541db
Skip warnings for some unresolved references. [DO NOT MERGE]

Some applications rename the newer RTL attributes to the older
attributes in order to target RTL locales, but not need to include two
attributes everywhere it's needed. For example, iosched renames
paddingStart to paddingLeft (among other attributes) for API 17 and
above. This leads to hundreds of warnings about missing attributes.
This change suppresses such warnings.

Also, skip adding unresolved attributes to the typed array. This is more
in line with the actual implementation on device, and prevents
unexpected warnings/errors/crashes later.

Change-Id: Iee616fa6295aa9731ede0cf9dcd6dd2bd1fe8f20
(cherry picked from commit b3e872be9e634c8d1f34d07778ea753880bbf2d9)
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgeContext.java