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

am: 5744ea2c0d

Change-Id: Iffe87fb5e4bba4129e0d9109e73b11da01080e20
This commit is contained in:
Charles He
2017-04-10 13:02:15 +00:00
committed by android-build-merger

View File

@@ -1313,7 +1313,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);