Merge "Fixed a bug where a notification could be stuck in the overlay" into nyc-dev
am: 2fba229166
* commit '2fba229166213fe755ce9d1c982ff191e885c854':
Fixed a bug where a notification could be stuck in the overlay
Change-Id: I3ad2960fe0c077b7db539ac094269034c4558757
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user