Generalize the icon popup menu types.

Generalized popup menu types and logic to allow wider uses outside of launcher.

Bug: 198438631
Test: long pressed launcher icons and pressed menu options
Change-Id: Iadcbb1796496c0061dcee362784e426ff55dc94a
This commit is contained in:
Schneider Victor-tulias
2021-10-15 14:43:54 -07:00
parent 22762d91cd
commit 16e04e29d2
10 changed files with 47 additions and 33 deletions

View File

@@ -1676,7 +1676,7 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
}
if (child instanceof BubbleTextView && !dragOptions.isAccessibleDrag) {
PopupContainerWithArrow popupContainer = PopupContainerWithArrow
PopupContainerWithArrow<Launcher> popupContainer = PopupContainerWithArrow
.showForIcon((BubbleTextView) child);
if (popupContainer != null) {
dragOptions.preDragCondition = popupContainer.createPreDragCondition();