Merge \\"Show sign-in to network notification to all users, not just owner.\\" into nyc-dev am: fa7453ed47
am: 3ed407344a
Change-Id: I82726a61541da890dea12448b2823f3dd7e367d2
This commit is contained in:
@@ -3566,14 +3566,14 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
notificationManager.notify(NOTIFICATION_ID, id, notification);
|
notificationManager.notifyAsUser(NOTIFICATION_ID, id, notification, UserHandle.ALL);
|
||||||
} catch (NullPointerException npe) {
|
} catch (NullPointerException npe) {
|
||||||
loge("setNotificationVisible: visible notificationManager npe=" + npe);
|
loge("setNotificationVisible: visible notificationManager npe=" + npe);
|
||||||
npe.printStackTrace();
|
npe.printStackTrace();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
notificationManager.cancel(NOTIFICATION_ID, id);
|
notificationManager.cancelAsUser(NOTIFICATION_ID, id, UserHandle.ALL);
|
||||||
} catch (NullPointerException npe) {
|
} catch (NullPointerException npe) {
|
||||||
loge("setNotificationVisible: cancel notificationManager npe=" + npe);
|
loge("setNotificationVisible: cancel notificationManager npe=" + npe);
|
||||||
npe.printStackTrace();
|
npe.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user