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

Commit f55f1bcb authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where a notification could be stuck in the overlay

Change-Id: Idf07b1948b9baeff095fbeccd417cdad1e81e7f8
Fixes: 28992452
parent 570bfa27
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1887,10 +1887,13 @@ public abstract class BaseStatusBar extends SystemUI implements
                public boolean onDismiss() {
                    if (mHeadsUpManager != null && mHeadsUpManager.isHeadsUp(notificationKey)) {
                        // Release the HUN notification to the shade.

                        if (isPanelFullyCollapsed()) {
                            HeadsUpManager.setIsClickedNotification(row, true);
                        }
                        //
                        // In most cases, when FLAG_AUTO_CANCEL is set, the notification will
                        // become canceled shortly by NoMan, but we can't assume that.
                        HeadsUpManager.setIsClickedNotification(row, true);
                        mHeadsUpManager.releaseImmediately(notificationKey);
                    }
                    StatusBarNotification parentToCancel = null;