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

Commit 798fb798 authored by Robert Carr's avatar Robert Carr Committed by Rob Carr
Browse files

PopupWindow: Be more consistent about Gravity calculation.

Currently we are only appending the DISPLAY_CLIP_VERTICAL
if the API user happens to call update() after showAsDropDown().
This fixes that behavior, and fixes a RTL issue (START v. LEFT).
Unblocks a CTS test I am working on.

Bug: 30578621
Change-Id: Ibf838544d453986b66eb223e2ac0f7d909fe5630
(cherry picked from commit 8367c509)
parent 67abc837
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1547,7 +1547,7 @@ public class PopupWindow {
        }

        // Let the window manager know to align the top to y.
        outParams.gravity = Gravity.LEFT | Gravity.TOP;
        outParams.gravity = computeGravity();
        outParams.width = width;
        outParams.height = height;