mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
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 Merged-In: I16515518c6d488b74450456306abbfff646ac11b
This commit is contained in:
@@ -486,6 +486,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());
|
||||
|
||||
Reference in New Issue
Block a user