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

Commit 20af12eb authored by Tony Wickham's avatar Tony Wickham
Browse files

Maintain dot and text visibility if a new popup is created while closing

Test:
- Long press an icon to open the popup
- Long press the same icon while the popup is open

Previously, the dot would reappear (when the original popup finished closing).
Now, the dot stays hidden, as it should since a popup is showing.

Bug: 143639898
Change-Id: Ia0bdb626e02f4ad9ba12c27d94fea054b4afe50e
parent 329fca45
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -575,8 +575,11 @@ public class PopupContainerWithArrow extends ArrowPopup implements DragSource,

    @Override
    protected void closeComplete() {
        PopupContainerWithArrow openPopup = getOpen(mLauncher);
        if (openPopup == null || openPopup.mOriginalIcon != mOriginalIcon) {
            mOriginalIcon.setTextVisibility(mOriginalIcon.shouldTextBeVisible());
            mOriginalIcon.setForceHideDot(false);
        }
        super.closeComplete();
    }