summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Jensen <pauljensen@google.com> 2016-06-13 09:39:28 -0400
committer Paul Jensen <pauljensen@google.com> 2016-06-13 09:39:28 -0400
commitf8e903fe2c297b2e8a6cf22a148620930cf148b0 (patch)
tree2b66b0ae75d18f80928dbe45a5979768afb46e9d
parentc4f1bc40326c10fde55f07230e3fe3067d70fbfa (diff)
Show sign-in to network notification to all users, not just owner.
All users should be made aware a captive portal is in place and be given the opportunity to sign into the network. Without this fix other users are not notified and given a chance to sign-in. Change-Id: I1bf823d5f6a36f391dca4be5f6a584e8562a72a7 Fixes: 23079964
-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 5118b3f2ab7a..e5f32b82ef1a 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -3571,14 +3571,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();