diff options
author | Tor Norbye <tnorbye@google.com> | 2013-01-04 16:05:18 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-01-04 16:05:18 -0800 |
commit | 3cd80d949ca88fbef4d8da495992ac8855ad069c (patch) | |
tree | aec3904c6e390e94b9ac1995b2757e6931987843 /tools/layoutlib | |
parent | 95bdeddb97b2f14e115751041b7831f73d92a4cd (diff) | |
parent | 72c6137a7aa5e5ada6a4aeca52f33d060742beb6 (diff) | |
download | frameworks_base-3cd80d949ca88fbef4d8da495992ac8855ad069c.zip frameworks_base-3cd80d949ca88fbef4d8da495992ac8855ad069c.tar.gz frameworks_base-3cd80d949ca88fbef4d8da495992ac8855ad069c.tar.bz2 |
am 72c6137a: Handle empty flag attributes, such as gravity=""
* commit '72c6137a7aa5e5ada6a4aeca52f33d060742beb6':
Handle empty flag attributes, such as gravity=""
Diffstat (limited to 'tools/layoutlib')
-rw-r--r-- | tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java b/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java index ab5c4a6..446d139 100644 --- a/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java +++ b/tools/layoutlib/bridge/src/android/content/res/BridgeTypedArray.java @@ -218,7 +218,7 @@ public final class BridgeTypedArray extends TypedArray { return defValue; } - if (s == null) { + if (s == null || s.length() == 0) { return defValue; } |