diff options
Diffstat (limited to 'src/com/android/settings/vpn2/VpnSettings.java')
-rw-r--r-- | src/com/android/settings/vpn2/VpnSettings.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/settings/vpn2/VpnSettings.java b/src/com/android/settings/vpn2/VpnSettings.java index ab84654..7516392 100644 --- a/src/com/android/settings/vpn2/VpnSettings.java +++ b/src/com/android/settings/vpn2/VpnSettings.java @@ -350,6 +350,15 @@ public class VpnSettings extends SettingsPreferenceFragment implements if (preference instanceof VpnPreference) { VpnProfile profile = ((VpnPreference) preference).getProfile(); + if (mInfo != null && profile.key.equals(mInfo.key) && + mInfo.state == LegacyVpnInfo.STATE_CONNECTED) { + try { + mInfo.intent.send(); + return true; + } catch (Exception e) { + // ignore + } + } mDialog = new VpnDialog(getActivity(), this, profile, false); } else { // Generate a new key. Here we just use the current time. |