summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TableLayout.java
diff options
context:
space:
mode:
authorJustin Ho <justinho@google.com>2012-10-17 15:54:20 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-17 15:54:20 -0700
commit4e360f06003dd31da25dc8529fa1876ab573d0aa (patch)
treee392c1de237063c353618ae31a4162239d237da0 /core/java/android/widget/TableLayout.java
parentf49d835dfe1bd21920ff8a48cbdfb9c1fd632fd9 (diff)
Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height."
This reverts commit f49d835dfe1bd21920ff8a48cbdfb9c1fd632fd9 Change-Id: If0093f23d6458e53619220fbf0aa5f844ad2c790
Diffstat (limited to 'core/java/android/widget/TableLayout.java')
-rw-r--r--core/java/android/widget/TableLayout.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/java/android/widget/TableLayout.java b/core/java/android/widget/TableLayout.java
index 399b4fa14544..113299a73cee 100644
--- a/core/java/android/widget/TableLayout.java
+++ b/core/java/android/widget/TableLayout.java
@@ -741,14 +741,9 @@ public class TableLayout extends LinearLayout {
* @param heightAttr the height attribute to fetch
*/
@Override
- protected void setBaseAttributes(TypedArray a,
- int widthAttr, int heightAttr) {
+ protected void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr) {
this.width = MATCH_PARENT;
- if (a.hasValue(heightAttr)) {
- this.height = a.getLayoutDimension(heightAttr, "layout_height");
- } else {
- this.height = WRAP_CONTENT;
- }
+ this.height = a.getLayoutDimension(heightAttr, WRAP_CONTENT);
}
}