From f55f1bcb94040058700052d4d6f66a56a2bb183e Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 27 May 2016 11:19:11 -0700 Subject: [PATCH] Fixed a bug where a notification could be stuck in the overlay Change-Id: Idf07b1948b9baeff095fbeccd417cdad1e81e7f8 Fixes: 28992452 --- .../src/com/android/systemui/statusbar/BaseStatusBar.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java index 63933d4124006..91889d3b91adc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java @@ -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;