am fc24d0a7: am 8e6edba5: Merge "Restore legacy VPN stats dialog." into lmp-dev

* commit 'fc24d0a78071f6e441f236ab69be6642f650f253':
  Restore legacy VPN stats dialog.
This commit is contained in:
Jeff Davidson
2014-08-23 02:49:04 +00:00
committed by Android Git Automerger

View File

@@ -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.