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

Commit 16467b32 authored by Brian Isganitis's avatar Brian Isganitis
Browse files

Remove popup container drag listener on close complete.

Bug: 217162588
Test: Verified removal once drag is finished. Verified working on secondary display launcher.
Change-Id: I16515518c6d488b74450456306abbfff646ac11b
parent f10ecccd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -508,6 +508,9 @@ public class PopupContainerWithArrow<T extends Context & ActivityContext>
    @Override
    protected void closeComplete() {
        super.closeComplete();
        if (mActivityContext.getDragController() != null) {
            mActivityContext.getDragController().removeDragListener(this);
        }
        PopupContainerWithArrow openPopup = getOpen(mActivityContext);
        if (openPopup == null || openPopup.mOriginalIcon != mOriginalIcon) {
            mOriginalIcon.setTextVisibility(mOriginalIcon.shouldTextBeVisible());