Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 724561cc authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 949 into donut

* changes:
  Fixes external #2575 (http://code.google.com/p/android/issues/detail?id=2575). HorizontalScrollView was comparing the measured height of its child to its width.
parents beb2498e f83f59f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -283,7 +283,7 @@ public class HorizontalScrollView extends FrameLayout {

        final View child = getChildAt(0);
        int width = getMeasuredWidth();
        if (child.getMeasuredHeight() < width) {
        if (child.getMeasuredWidth() < width) {
            final FrameLayout.LayoutParams lp = (LayoutParams) child.getLayoutParams();

            int childHeightMeasureSpec = getChildMeasureSpec(heightMeasureSpec, mPaddingTop