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

Commit 85a31994 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Do not allow multiple snooze menus to be open at once

Fixes: 187480963
Test: manual snoozing of multiple notifications
Change-Id: I83a8e697c35b2eb0bb00320628bb42c1b4aeb5e7
parent f8894a86
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
    /** The click listener for the snooze button. */
    public View.OnClickListener getSnoozeClickListener(MenuItem item) {
        return v -> {
            // Dismiss a snoozed notification if one is still left behind
            mNotificationGutsManager.closeAndSaveGuts(true /* removeLeavebehind */,
                    false /* force */, false /* removeControls */, -1 /* x */, -1 /* y */,
                    false /* resetMenu */);
            mNotificationGutsManager.openGuts(this, 0, 0, item);
        };
    }