Clear connected legacy VPN during rescan

Change-Id: I0fec37b3f73ce5b538721d79e78e1128d7667380
This commit is contained in:
Robin Lee
2015-06-01 18:45:40 -07:00
parent 2defc457bd
commit c409605356

View File

@@ -234,6 +234,7 @@ public class VpnSettings extends SettingsPreferenceFragment implements
// Mark out connections with a subtitle
try {
// Legacy VPNs
mConnectedLegacyVpn = null;
LegacyVpnInfo info = mConnectivityService.getLegacyVpnInfo();
if (info != null) {
ConfigPreference preference = mConfigPreferences.get(info.key);