summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-06-25 13:01:55 -0700
committerRomain Guy <romainguy@android.com>2009-06-25 13:01:55 -0700
commite24ef6032f52cb754bfeb9ab32aae0a5cfa61f8a (patch)
tree770ebc80bceefb86623497964165624786e4e30b
parenta7251991ffb6a26e4cf23e60633c8250c78bd9df (diff)
downloadframeworks_base-e24ef6032f52cb754bfeb9ab32aae0a5cfa61f8a.zip
frameworks_base-e24ef6032f52cb754bfeb9ab32aae0a5cfa61f8a.tar.gz
frameworks_base-e24ef6032f52cb754bfeb9ab32aae0a5cfa61f8a.tar.bz2
Fixes #1940605. RelativeLayout was swapping horizontal and vertical
dependencies.
-rw-r--r--core/java/android/widget/RelativeLayout.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/widget/RelativeLayout.java b/core/java/android/widget/RelativeLayout.java
index 44cf9a4..00bc21e 100644
--- a/core/java/android/widget/RelativeLayout.java
+++ b/core/java/android/widget/RelativeLayout.java
@@ -343,7 +343,7 @@ public class RelativeLayout extends ViewGroup {
ignore = findViewById(mIgnoreGravity);
}
- View[] views = mSortedVerticalChildren;
+ View[] views = mSortedHorizontalChildren;
int count = views.length;
for (int i = 0; i < count; i++) {
View child = views[i];
@@ -356,7 +356,7 @@ public class RelativeLayout extends ViewGroup {
}
}
- views = mSortedHorizontalChildren;
+ views = mSortedVerticalChildren;
count = views.length;
for (int i = 0; i < count; i++) {
View child = views[i];