diff options
author | Selim Cinek <cinek@google.com> | 2015-03-16 13:34:43 -0700 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2015-03-16 13:34:43 -0700 |
commit | 0090ea5572e3fcf1a4eed9fd8872074a2975ee9b (patch) | |
tree | ae4df51e1bcfd156237cc2b9f9246bc9b19c5620 /packages/SystemUI/src/com/android/systemui/statusbar | |
parent | 547a06b50fa97cd079851f80d0d5aa5297cbb040 (diff) | |
download | frameworks_base-0090ea5572e3fcf1a4eed9fd8872074a2975ee9b.zip frameworks_base-0090ea5572e3fcf1a4eed9fd8872074a2975ee9b.tar.gz frameworks_base-0090ea5572e3fcf1a4eed9fd8872074a2975ee9b.tar.bz2 |
Fixed a bug where HUNs would not dissappear
Bug: 19626170
Change-Id: Iadc4bd6b2bfc85b3da67e1e87cf1514cfcb269bb
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar')
-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); } } |