diff options
author | Brian Isganitis <brianji@google.com> | 2022-02-15 13:24:09 -0800 |
---|---|---|
committer | Brian Isganitis <brianji@google.com> | 2022-02-15 13:24:09 -0800 |
commit | 1f7afc7740207d5438c80f52af1c9b8002bc045a (patch) | |
tree | e3fd39b1bcb96ab0149dcd4ba784ca964d119730 /src | |
parent | 7b046e7e2778bacc80db12e9abd650054311b59b (diff) | |
download | Launcher3-1f7afc7740207d5438c80f52af1c9b8002bc045a.tar.gz |
Remove popup container drag listener on close complete.
The drag listener is never removed causing a memory leak over time.
Bug: 217162588
Test: Verified removal once drag is finished and close complete is
called.
Change-Id: Iff7bac8724e76e5dec98edaffe2d8853516f6c87
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/popup/PopupContainerWithArrow.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index 198397a5e1..05d6fc6c15 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -508,6 +508,7 @@ public class PopupContainerWithArrow<T extends Context & ActivityContext> @Override protected void closeComplete() { super.closeComplete(); + mActivityContext.getDragController().removeDragListener(this); PopupContainerWithArrow openPopup = getOpen(mActivityContext); if (openPopup == null || openPopup.mOriginalIcon != mOriginalIcon) { mOriginalIcon.setTextVisibility(mOriginalIcon.shouldTextBeVisible()); |