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

Commit f83f59f4 authored by Romain Guy's avatar Romain Guy
Browse files
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.
parent fa3e5562
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