summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2012-09-10 09:43:27 -0400
committerJohn Spurlock <jspurlock@google.com>2012-09-10 09:43:27 -0400
commit61e36836b7302c8ccd30c0c07ac14d087f873c8e (patch)
treefc4af5a3682eb7588eac0ea67cf11b077aea4512 /packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
parent753e1280cbc3f0006b04f67385f02e1f92019f7d (diff)
downloadframeworks_base-61e36836b7302c8ccd30c0c07ac14d087f873c8e.zip
frameworks_base-61e36836b7302c8ccd30c0c07ac14d087f873c8e.tar.gz
frameworks_base-61e36836b7302c8ccd30c0c07ac14d087f873c8e.tar.bz2
Notifications: Hide ticker updates from background users.
We should only update the notification ticker area when the notification is for the current user. Bug:6924835 Change-Id: Ieaccbd8c972b3d0f62c74d29d42e0fa77ec3148c
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java6
1 files changed, 5 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 97034bb..923cd93 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -1041,8 +1041,12 @@ public abstract class BaseStatusBar extends SystemUI implements
// swipe-dismissable)
updateNotificationVetoButton(oldEntry.row, notification);
+ // Is this for you?
+ boolean isForCurrentUser = notificationIsForCurrentUser(notification);
+ if (DEBUG) Slog.d(TAG, "notification is " + (isForCurrentUser ? "" : "not ") + "for you");
+
// Restart the ticker if it's still running
- if (updateTicker) {
+ if (updateTicker && isForCurrentUser) {
haltTicker();
tick(key, notification, false);
}