Merge "Show sign-in to network notification to all users, not just owner." into nyc-dev

This commit is contained in:
Paul Jensen
2016-06-14 11:05:31 +00:00
committed by Android (Google) Code Review

View File

@@ -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();