summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Wren <cwren@android.com> 2014-03-26 12:39:41 -0400
committer Chris Wren <cwren@android.com> 2014-03-26 13:09:18 -0400
commit7fd2a3bf6ae68a16084f3553d5b159b895e3103d (patch)
treed98b693feecaf9b53b1845a7f72db8542ac3ac87
parent7638b1f3b56d8176e401a4067b18749682635f0c (diff)
always clear the HeadsUpDecayTimer
for non-clearable heads up notifications, a decay timer may be left in the queue Bug: 13652819 Change-Id: I533db43484731922790f8501250b5a1ca7d4ba0b
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
index 91325ae07e99..b053dd784bbd 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -981,9 +981,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
@Override
public void resetHeadsUpDecayTimer() {
+ mHandler.removeMessages(MSG_HIDE_HEADS_UP);
if (mUseHeadsUp && mHeadsUpNotificationDecay > 0
&& mHeadsUpNotificationView.isClearable()) {
- mHandler.removeMessages(MSG_HIDE_HEADS_UP);
mHandler.sendEmptyMessageDelayed(MSG_HIDE_HEADS_UP, mHeadsUpNotificationDecay);
}
}