From 10b5d6804590eeeec8a0c677d5263485c1c63ed3 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 29 Mar 2022 11:12:48 -0700 Subject: [PATCH] Avoid closing PopUpContainer immediately after view is clicked. When an item is clicked, we start an app launch animation from the icon in the container to the full app. The issue is that we close the container too early, which causes a janky experience. Tested that we already handle closing the container in all click instances (ie. when launcher is in background). Bug: 185510490 Test: click on all the different view types within PopupContainer ensure that the container does get closed via logs Change-Id: I4fef24b911137d0abd24746fa49f466f5183176c --- src/com/android/launcher3/popup/PopupContainerWithArrow.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index 2fa7945a20..7692bbfaa6 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -148,7 +148,6 @@ public class PopupContainerWithArrow public OnClickListener getItemClickListener() { return (view) -> { mActivityContext.getItemOnClickListener().onClick(view); - close(true); }; }