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

Commit b3aa575e authored by Jun Mukai's avatar Jun Mukai Committed by Android (Google) Code Review
Browse files

Merge "Specifies the new height/width for update() on ListPopupWindow.show()." into mnc-dev

parents 5ac4a5fa 0eaec1f5
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -618,12 +618,11 @@ public class ListPopupWindow {
                heightSpec = mDropDownHeight;
                heightSpec = mDropDownHeight;
            }
            }


            mPopup.setWidth(widthSpec);
            mPopup.setHeight(heightSpec);
            mPopup.setOutsideTouchable(!mForceIgnoreOutsideTouch && !mDropDownAlwaysVisible);
            mPopup.setOutsideTouchable(!mForceIgnoreOutsideTouch && !mDropDownAlwaysVisible);


            mPopup.update(getAnchorView(), mDropDownHorizontalOffset,
            mPopup.update(getAnchorView(), mDropDownHorizontalOffset,
                            mDropDownVerticalOffset, -1, -1);
                            mDropDownVerticalOffset, (widthSpec < 0)? -1 : widthSpec,
                            (heightSpec < 0)? -1 : heightSpec);
        } else {
        } else {
            final int widthSpec;
            final int widthSpec;
            if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) {
            if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) {