diff options
author | Selim Cinek <cinek@google.com> | 2015-03-16 22:29:23 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-16 22:29:24 +0000 |
commit | d2e1dc138cbc748e4c76e6edb0c3271ba3d53a17 (patch) | |
tree | 2f9fea7f53889953f00837731578476c1abfe69b /packages/SystemUI | |
parent | 9c329b8b6440823ef94bffebc0b1098e8b2ad622 (diff) | |
parent | 0090ea5572e3fcf1a4eed9fd8872074a2975ee9b (diff) | |
download | frameworks_base-d2e1dc138cbc748e4c76e6edb0c3271ba3d53a17.zip frameworks_base-d2e1dc138cbc748e4c76e6edb0c3271ba3d53a17.tar.gz frameworks_base-d2e1dc138cbc748e4c76e6edb0c3271ba3d53a17.tar.bz2 |
Merge "Fixed a bug where HUNs would not dissappear"
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java index 6c1cdcd..1e40bab 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java @@ -162,11 +162,6 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper. public void updateNotification(NotificationData.Entry headsUp, boolean alert) { if (DEBUG) Log.v(TAG, "updateNotification"); - if (alert) { - mBar.scheduleHeadsUpDecay(mHeadsUpNotificationDecay); - } - invalidate(); - if (mHeadsUp == headsUp) { resetViewForHeadsup(); // This is an in-place update. Noting more to do. @@ -197,9 +192,11 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper. } mHeadsUp.setInterruption(); - + } + if (alert) { // Make sure the heads up window is open. mBar.scheduleHeadsUpOpen(); + mBar.scheduleHeadsUpDecay(mHeadsUpNotificationDecay); } } |