Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5023c2f6 authored by Charlie Anderson's avatar Charlie Anderson
Browse files

Fix bug by allowing popup notifications to be dismissed via swipe

Bug: 271218648
Test: manually tested swiping notifications
Change-Id: I3b522639c59b599a14922e4f93deb0e96addb8f8
parent e8319618
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -227,17 +227,18 @@ public class PopupContainerWithArrow<T extends Context & ActivityContext>
        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;