From 0bd2f266a5086a0a37a594e50fd2b198753e5d47 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Thu, 12 Jun 2014 14:53:47 -0400 Subject: PowerUI: Remove obsolete workaround. No longer need to cancel and repost notifications when transitioning from/to heads-up. Bug:15534198 Change-Id: I93e5433e51410c80c2e183976e0041ca1bfeb3c7 --- .../com/android/systemui/power/PowerNotificationWarnings.java | 9 --------- 1 file changed, 9 deletions(-) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java index 3fa8b99..1bb7109 100644 --- a/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java +++ b/packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java @@ -126,25 +126,16 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI { updateNotification(); } - private void cancelOther(int showing) { - if (mShowing != SHOWING_NOTHING && mShowing != showing) { - mNoMan.cancel(TAG_NOTIFICATION, ID_NOTIFICATION); // workaround no HUN on updates - } - } - private void updateNotification() { Slog.d(TAG, "updateNotification mWarning=" + mWarning + " mSaver=" + mSaver + " mInvalidCharger=" + mInvalidCharger); if (mInvalidCharger) { - cancelOther(SHOWING_INVALID_CHARGER); showInvalidChargerNotification(); mShowing = SHOWING_INVALID_CHARGER; } else if (mWarning) { - cancelOther(SHOWING_WARNING); showWarningNotification(); mShowing = SHOWING_WARNING; } else if (mSaver) { - cancelOther(SHOWING_SAVER); showSaverNotification(); mShowing = SHOWING_SAVER; } else { -- cgit v1.1