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

am: 48eb3702fe

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

Change-Id: I19f1b905ea5233e6aa9677a3e5cb0bb1d47eacc1
This commit is contained in:
Selim Cinek
2016-05-27 20:56:24 +00:00
committed by android-build-merger

View File

@@ -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;