diff options
author | John Spurlock <jspurlock@google.com> | 2014-06-12 14:53:47 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2014-06-12 14:53:47 -0400 |
commit | 0bd2f266a5086a0a37a594e50fd2b198753e5d47 (patch) | |
tree | e2aea62e8b53c227ec3d22312c9341015ec63480 /packages/SystemUI/src/com/android/systemui/power | |
parent | 4a1ca967388804e599180a27bf9f03ea16ce6362 (diff) | |
download | frameworks_base-0bd2f266a5086a0a37a594e50fd2b198753e5d47.zip frameworks_base-0bd2f266a5086a0a37a594e50fd2b198753e5d47.tar.gz frameworks_base-0bd2f266a5086a0a37a594e50fd2b198753e5d47.tar.bz2 |
PowerUI: Remove obsolete workaround.
No longer need to cancel and repost notifications when
transitioning from/to heads-up.
Bug:15534198
Change-Id: I93e5433e51410c80c2e183976e0041ca1bfeb3c7
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/power')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/power/PowerNotificationWarnings.java | 9 |
1 files changed, 0 insertions, 9 deletions
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 { |