summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/ViewGroup.java
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-10-15 18:44:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-15 18:45:03 -0700
commit69fbc3c089e3399ebd94cc3a7ba846f426a7b32d (patch)
treeab0cfa10e24e387db1f18a0547910b405657c5a1 /core/java/android/view/ViewGroup.java
parentedefaa25db7c9cd4facab258a0fd5913c6493bd0 (diff)
parent8e63bcc63fd002231f8391af8982eeb235d096c8 (diff)
downloadframeworks_base-69fbc3c089e3399ebd94cc3a7ba846f426a7b32d.zip
frameworks_base-69fbc3c089e3399ebd94cc3a7ba846f426a7b32d.tar.gz
frameworks_base-69fbc3c089e3399ebd94cc3a7ba846f426a7b32d.tar.bz2
Merge "Revert "Fix for bug 6050753."" into jb-mr1-dev
Diffstat (limited to 'core/java/android/view/ViewGroup.java')
-rw-r--r--core/java/android/view/ViewGroup.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java
index 9ce7df9..6c1049b 100644
--- a/core/java/android/view/ViewGroup.java
+++ b/core/java/android/view/ViewGroup.java
@@ -5611,19 +5611,15 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager
}
/**
- * Extracts the <code>width</code> and <code>height</code> layout parameters
- * from the supplied TypedArray, <code>a</code>, and assigns them
- * to the appropriate fields. If, <code>a</code>, does not contain an
- * entry for either attribute, the value, {@link ViewGroup.LayoutParams#WRAP_CONTENT},
- * is used as a default.
+ * Extracts the layout parameters from the supplied attributes.
*
* @param a the style attributes to extract the parameters from
* @param widthAttr the identifier of the width attribute
* @param heightAttr the identifier of the height attribute
*/
protected void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr) {
- width = a.getLayoutDimension(widthAttr, WRAP_CONTENT);
- height = a.getLayoutDimension(heightAttr, WRAP_CONTENT);
+ width = a.getLayoutDimension(widthAttr, "layout_width");
+ height = a.getLayoutDimension(heightAttr, "layout_height");
}
/**