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

Commit d748b546 authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Merge \"Don\'t try and resolve WRAP_CONTENT too early.\" into nyc-dev

am: 72ce9916

Change-Id: I277968e2a48ac5647db0f03877ab168afc245a6c
parents d2253666 72ce9916
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -1517,13 +1517,9 @@ public class PopupWindow {
        anchor.getWindowVisibleDisplayFrame(displayFrame);
        anchor.getWindowVisibleDisplayFrame(displayFrame);
        if (width == MATCH_PARENT) {
        if (width == MATCH_PARENT) {
            width = displayFrame.right - displayFrame.left;
            width = displayFrame.right - displayFrame.left;
        } else if (width == WRAP_CONTENT) {
            width = mContentView.getMeasuredWidth();
        }
        }
        if (height == MATCH_PARENT) {
        if (height == MATCH_PARENT) {
            height = displayFrame.bottom - displayFrame.top;
            height = displayFrame.bottom - displayFrame.top;
        } else if (height == WRAP_CONTENT) {
            height = mContentView.getMeasuredHeight();
        }
        }


        // Let the window manager know to align the top to y.
        // Let the window manager know to align the top to y.