summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Jensen <pauljensen@google.com> 2016-06-14 11:05:31 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-06-14 11:05:32 +0000
commit78452db2856d627008d64bb2054e8673f93df795 (patch)
treea196062aee3343d306817ed3e0703a0227f5b023
parentac3fe8fffe8321e4292983ca31b472e326f45f1d (diff)
parentf8e903fe2c297b2e8a6cf22a148620930cf148b0 (diff)
Merge "Show sign-in to network notification to all users, not just owner." into nyc-dev
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index acf8009e34a6..41d8b4fffb1c 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -3552,14 +3552,14 @@ public class ConnectivityService extends IConnectivityManager.Stub
.build();
try {
- notificationManager.notify(NOTIFICATION_ID, id, notification);
+ notificationManager.notifyAsUser(NOTIFICATION_ID, id, notification, UserHandle.ALL);
} catch (NullPointerException npe) {
loge("setNotificationVisible: visible notificationManager npe=" + npe);
npe.printStackTrace();
}
} else {
try {
- notificationManager.cancel(NOTIFICATION_ID, id);
+ notificationManager.cancelAsUser(NOTIFICATION_ID, id, UserHandle.ALL);
} catch (NullPointerException npe) {
loge("setNotificationVisible: cancel notificationManager npe=" + npe);
npe.printStackTrace();