commit | 5320dbda4ea9f94066ce507b60186005c02ea149 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Sat Feb 20 17:32:39 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Feb 20 17:32:39 2021 +0000 |
tree | 3b4637610f386f793387f6c130ca34824203b5ad | |
parent | 5cdada288857ffb0d82c04e8828a4f8dc7661e9c [diff] | |
parent | e584f62ac409e75e609931f4abded067e76609d0 [diff] |
Merge "Reset VPN settings by calling VpnManager." am: be4a0e84ef am: 9e072f09a0 am: e584f62ac4 Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1594351 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I24d89cb5138f86d86a0981b7580f52c50b70133b
diff --git a/src/com/android/settings/ResetNetworkConfirm.java b/src/com/android/settings/ResetNetworkConfirm.java index 43f35a6..f79bdb2 100644 --- a/src/com/android/settings/ResetNetworkConfirm.java +++ b/src/com/android/settings/ResetNetworkConfirm.java
@@ -28,6 +28,7 @@ import android.net.ConnectivityManager; import android.net.NetworkPolicyManager; import android.net.Uri; +import android.net.VpnManager; import android.net.wifi.WifiManager; import android.net.wifi.p2p.WifiP2pManager; import android.os.AsyncTask; @@ -101,6 +102,11 @@ connectivityManager.factoryReset(); } + VpnManager vpnManager = mContext.getSystemService(VpnManager.class); + if (vpnManager != null) { + vpnManager.factoryReset(); + } + WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); if (wifiManager != null) {