summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2014-03-26 12:39:41 -0400
committerChris Wren <cwren@android.com>2014-03-26 13:09:18 -0400
commit7fd2a3bf6ae68a16084f3553d5b159b895e3103d (patch)
treed98b693feecaf9b53b1845a7f72db8542ac3ac87 /packages/SystemUI/src/com
parent7638b1f3b56d8176e401a4067b18749682635f0c (diff)
downloadframeworks_base-7fd2a3bf6ae68a16084f3553d5b159b895e3103d.zip
frameworks_base-7fd2a3bf6ae68a16084f3553d5b159b895e3103d.tar.gz
frameworks_base-7fd2a3bf6ae68a16084f3553d5b159b895e3103d.tar.bz2
always clear the HeadsUpDecayTimer
for non-clearable heads up notifications, a decay timer may be left in the queue Bug: 13652819 Change-Id: I533db43484731922790f8501250b5a1ca7d4ba0b
Diffstat (limited to 'packages/SystemUI/src/com')
-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 91325ae..b053dd7 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);
}
}