Merge "always clear the HeadsUpDecayTimer"

This commit is contained in:
Chris Wren
2014-03-26 17:09:55 +00:00
committed by Android (Google) Code Review

View File

@@ -981,9 +981,9 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
@Override @Override
public void resetHeadsUpDecayTimer() { public void resetHeadsUpDecayTimer() {
mHandler.removeMessages(MSG_HIDE_HEADS_UP);
if (mUseHeadsUp && mHeadsUpNotificationDecay > 0 if (mUseHeadsUp && mHeadsUpNotificationDecay > 0
&& mHeadsUpNotificationView.isClearable()) { && mHeadsUpNotificationView.isClearable()) {
mHandler.removeMessages(MSG_HIDE_HEADS_UP);
mHandler.sendEmptyMessageDelayed(MSG_HIDE_HEADS_UP, mHeadsUpNotificationDecay); mHandler.sendEmptyMessageDelayed(MSG_HIDE_HEADS_UP, mHeadsUpNotificationDecay);
} }
} }