From 5023c2f65b557d11b19a7ca83c1a573bd30c7fee Mon Sep 17 00:00:00 2001 From: Charlie Anderson Date: Tue, 7 Mar 2023 11:51:10 -0500 Subject: [PATCH] Fix bug by allowing popup notifications to be dismissed via swipe Bug: 271218648 Test: manually tested swiping notifications Change-Id: I3b522639c59b599a14922e4f93deb0e96addb8f8 --- src/com/android/launcher3/popup/PopupContainerWithArrow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index 8fef5c6bef..6c9a7fedc3 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -227,17 +227,18 @@ public class PopupContainerWithArrow if (ENABLE_MATERIAL_U_POPUP.get()) { container = (PopupContainerWithArrow) launcher.getLayoutInflater().inflate( R.layout.popup_container_material_u, launcher.getDragLayer(), false); + container.configureForLauncher(launcher); container.populateAndShowRowsMaterialU(icon, deepShortcutCount, systemShortcuts); } else { container = (PopupContainerWithArrow) launcher.getLayoutInflater().inflate( R.layout.popup_container, launcher.getDragLayer(), false); + container.configureForLauncher(launcher); container.populateAndShow( icon, deepShortcutCount, popupDataProvider.getNotificationKeysForItem(item), systemShortcuts); } - container.configureForLauncher(launcher); launcher.refreshAndBindWidgetsForPackageUser(PackageUserKey.fromItemInfo(item)); container.requestFocus(); return container;