summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorlion0738 <lion0738@naver.com>2016-01-25 17:07:14 +0900
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-15 11:02:40 -0800
commitc80e1ddcc2024ee7ddd97baf3c2479669b05d0f0 (patch)
treedb5567a9a62a2dcacc1151d2740f3ae5436989df /packages/SystemUI
parentccacfcf4244df197f861808b59ee9de7cb0dbc89 (diff)
downloadframeworks_base-c80e1ddcc2024ee7ddd97baf3c2479669b05d0f0.zip
frameworks_base-c80e1ddcc2024ee7ddd97baf3c2479669b05d0f0.tar.gz
frameworks_base-c80e1ddcc2024ee7ddd97baf3c2479669b05d0f0.tar.bz2
SystemUI: Don't update if HeadsUp is disabled
Heads up is still showing even if it's disabled. Change-Id: I0bd2875836929d6941cbec83762292a5a2c31572
Diffstat (limited to 'packages/SystemUI')
-rwxr-xr-xpackages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
index ce5cce5..dbf4996 100755
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -1947,7 +1947,9 @@ public abstract class BaseStatusBar extends SystemUI implements
entry.icon.set(ic);
inflateViews(entry, mStackScroller);
}
- updateHeadsUp(key, entry, shouldInterrupt, alertAgain);
+ if (mUseHeadsUp) {
+ updateHeadsUp(key, entry, shouldInterrupt, alertAgain);
+ }
mNotificationData.updateRanking(ranking);
updateNotifications();