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

Commit 05671232 authored by Selim Cinek's avatar Selim Cinek Committed by android-build-merger
Browse files

Merge "Fixed a bug where a notification could be stuck in the overlay" into nyc-dev am: 2fba2291

am: 48eb3702

* commit '48eb3702':
  Fixed a bug where a notification could be stuck in the overlay

Change-Id: I19f1b905ea5233e6aa9677a3e5cb0bb1d47eacc1
parents 0128d64c 48eb3702
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1891,10 +1891,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;