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

Commit 503b5ccc authored by Alan Viverette's avatar Alan Viverette Committed by android-build-merger
Browse files

Merge "Skip ListPopupWindow position update if detached" am: c45b10a9 am: 3107a17b

am: 300bb66b

Change-Id: I5b7590805a1dfaf45eb1a8a9a22f6ab47a7dfdfa
parents bc787514 300bb66b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -600,6 +600,10 @@ public class ListPopupWindow implements ShowableListMenu {
        mPopup.setWindowLayoutType(mDropDownWindowLayoutType);

        if (mPopup.isShowing()) {
            if (!getAnchorView().isAttachedToWindow()) {
                //Don't update position if the anchor view is detached from window.
                return;
            }
            final int widthSpec;
            if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) {
                // The call to PopupWindow's update method below can accept -1 for any