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

* commit 'b3aa575e3b8ec8f685c7431259f49ad82f2ee928':
  Specifies the new height/width for update() on ListPopupWindow.show().
This commit is contained in:
Jun Mukai
2015-06-10 21:25:17 +00:00
committed by Android Git Automerger

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) {