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

This commit is contained in:
Jun Mukai
2015-06-10 21:13:26 +00:00
committed by Android (Google) Code Review

View File

@@ -618,12 +618,11 @@ public class ListPopupWindow {
heightSpec = mDropDownHeight;
}
mPopup.setWidth(widthSpec);
mPopup.setHeight(heightSpec);
mPopup.setOutsideTouchable(!mForceIgnoreOutsideTouch && !mDropDownAlwaysVisible);
mPopup.update(getAnchorView(), mDropDownHorizontalOffset,
mDropDownVerticalOffset, -1, -1);
mDropDownVerticalOffset, (widthSpec < 0)? -1 : widthSpec,
(heightSpec < 0)? -1 : heightSpec);
} else {
final int widthSpec;
if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) {