SysUI: Don't drop HUN notification when clicked

A clicked notification is not guaranteed to be removed,
so instead of dropping a clicked HUN notification we have
to release it to the shade.

Bug: 19093631
Change-Id: I73b88af774e49e89c8a601873c48cc5f5eed0224
This commit is contained in:
Christoph Studer
2015-01-22 15:02:49 +01:00
parent 1a5ac5b415
commit c6a656c9ab

View File

@@ -1549,7 +1549,11 @@ public abstract class BaseStatusBar extends SystemUI implements
dismissKeyguardThenExecute(new OnDismissAction() {
public boolean onDismiss() {
if (mIsHeadsUp) {
mHeadsUpNotificationView.clear();
// Release the HUN notification to the shade.
//
// In most cases, when FLAG_AUTO_CANCEL is set, the notification will
// become canceled shortly by NoMan, but we can't assume that.
mHeadsUpNotificationView.releaseAndClose();
}
new Thread() {
@Override