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

Commit f95b2d9a authored by Alan Viverette's avatar Alan Viverette
Browse files

Ensure that popup width and height are correct on update

Bug: 26696843
Change-Id: I8b0409aeca02b4ad551689bdf003d95f5435e567
parent 10413819
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2027,21 +2027,24 @@ public class PopupWindow {
            mAnchorYoff = yoff;
        }

        final WindowManager.LayoutParams p =
                (WindowManager.LayoutParams) mDecorView.getLayoutParams();

        if (updateDimension) {
            if (width == -1) {
                width = mPopupWidth;
            } else {
                mPopupWidth = width;
                p.width = width;
            }
            if (height == -1) {
                height = mPopupHeight;
            } else {
                mPopupHeight = height;
                p.height  = height;
            }
        }

        final WindowManager.LayoutParams p =
                (WindowManager.LayoutParams) mDecorView.getLayoutParams();
        final int x = p.x;
        final int y = p.y;
        if (updateLocation) {