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

Commit bf9e17b1 authored by Robert Carr's avatar Robert Carr
Browse files

PopupWindow: Be more careful with FLAG_LAYOUT_NO_LIMITS

If we intend to clip to the screen we can't pass NO_LIMITS.
Luckily the default behavior for LAYOUT_IN_PARENT_FRAME is to not
clip to the parent frame, so we don't have to do anything except
update our local flag we use for explicit size calculations.

Bug: 28194524
Change-Id: I1465efce7f5412cf646bccd83e23a4b049f4dbc4
parent 4b8ab89e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -827,7 +827,6 @@ public class PopupWindow {
     */
    public void setClipToScreenEnabled(boolean enabled) {
        mClipToScreen = enabled;
        setClippingEnabled(!enabled);
    }

    /**