summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-09-23 17:08:57 -0700
committerDianne Hackborn <hackbod@google.com>2012-09-24 10:55:46 -0700
commit50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1 (patch)
treeaf1acc3ce0293d1ed797ecf0b7210464eb76e67c /packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
parent6b3292ce5b3908c7433503f64c852cf2b27718ed (diff)
downloadframeworks_base-50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1.zip
frameworks_base-50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1.tar.gz
frameworks_base-50cdf7c3069eb2cf82acbad73c322b7a5f3af4b1.tar.bz2
Fix issue #7214090: Need to be able to post notifications to all users
Also fix a bunch of system services that should be doing this. And while doing that, found I needed to fix PendingIntent to evaluate USER_CURRENT at the point of sending, not creation. Note that this may end up with us having some notification shown to non-primary users that lead to settings UI that should only be for the primary user (such as the vpn notification). I'm not sure what to do about this, maybe we need a different UI to come up there or something, but showing the actual notification for those users at least seems less broken than not telling them at all. Change-Id: Iffc51e2d7c847e3d05064d292ab93937646a1ab7
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java3
1 files changed, 2 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 ecb8fed..dab6306 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
@@ -293,7 +293,8 @@ public abstract class BaseStatusBar extends SystemUI implements
Slog.v(TAG, String.format("%s: current userid: %d, notification userid: %d",
n, thisUserId, notificationUserId));
}
- return thisUserId == notificationUserId;
+ return notificationUserId == UserHandle.USER_ALL
+ || thisUserId == notificationUserId;
}
protected View updateNotificationVetoButton(View row, StatusBarNotification n) {