Merge "VPN: cancel always-on notification with new id" into oc-dev

This commit is contained in:
Charles He
2017-04-10 12:43:32 +00:00
committed by Android (Google) Code Review

View File

@@ -1287,7 +1287,7 @@ public class Vpn {
try {
final NotificationManager notificationManager = NotificationManager.from(mContext);
if (!visible) {
notificationManager.cancelAsUser(TAG, 0, user);
notificationManager.cancelAsUser(TAG, SystemMessage.NOTE_VPN_DISCONNECTED, user);
return;
}
final Intent intent = new Intent(Settings.ACTION_VPN_SETTINGS);