summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/RadioGroup.java
diff options
context:
space:
mode:
authorJustin Ho <justinho@google.com>2012-10-17 10:47:39 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-17 10:47:39 -0700
commit57fca90ac65ecfe97acd4c93d442c3db8f815e11 (patch)
treee392c1de237063c353618ae31a4162239d237da0 /core/java/android/widget/RadioGroup.java
parentdcf59629beed8182759a1068ab8ee997935bef82 (diff)
downloadframeworks_base-57fca90ac65ecfe97acd4c93d442c3db8f815e11.zip
frameworks_base-57fca90ac65ecfe97acd4c93d442c3db8f815e11.tar.gz
frameworks_base-57fca90ac65ecfe97acd4c93d442c3db8f815e11.tar.bz2
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 dcf59629beed8182759a1068ab8ee997935bef82 Change-Id: I27426a0ffe993973ffb0b05ce1ed3afe73fcd87d
Diffstat (limited to 'core/java/android/widget/RadioGroup.java')
-rw-r--r--core/java/android/widget/RadioGroup.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/java/android/widget/RadioGroup.java b/core/java/android/widget/RadioGroup.java
index 78d05b0..42d63b2 100644
--- a/core/java/android/widget/RadioGroup.java
+++ b/core/java/android/widget/RadioGroup.java
@@ -297,33 +297,6 @@ public class RadioGroup extends LinearLayout {
public LayoutParams(MarginLayoutParams source) {
super(source);
}
-
- /**
- * <p>Fixes the child's width to
- * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT} and the child's
- * height to {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
- * when not specified in the XML file.</p>
- *
- * @param a the styled attributes set
- * @param widthAttr the width attribute to fetch
- * @param heightAttr the height attribute to fetch
- */
- @Override
- protected void setBaseAttributes(TypedArray a,
- int widthAttr, int heightAttr) {
-
- if (a.hasValue(widthAttr)) {
- width = a.getLayoutDimension(widthAttr, "layout_width");
- } else {
- width = WRAP_CONTENT;
- }
-
- if (a.hasValue(heightAttr)) {
- height = a.getLayoutDimension(heightAttr, "layout_height");
- } else {
- height = WRAP_CONTENT;
- }
- }
}
/**