summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/vpn2
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2014-08-12 15:59:01 -0700
committerJeff Davidson <jpd@google.com>2014-08-15 15:00:50 -0700
commit90b3b211efda80535ac2981032f66e117ffeb221 (patch)
tree521f5a8e1bde1821dab3daff8b04d863008dc6f5 /src/com/android/settings/vpn2
parent2be2a8a47f5ef585301479268752aa3d7d3a9261 (diff)
downloadpackages_apps_Settings-90b3b211efda80535ac2981032f66e117ffeb221.zip
packages_apps_Settings-90b3b211efda80535ac2981032f66e117ffeb221.tar.gz
packages_apps_Settings-90b3b211efda80535ac2981032f66e117ffeb221.tar.bz2
Less intrusive VPN dialog.
Add new AppOps to Settings and remove references to obsolete ManageDialog. VPN UX now lives in Quick Settings. Bug: 12878887 Bug: 16578022 Change-Id: I102a14c05db26ee3aef030cda971e5165f078a91
Diffstat (limited to 'src/com/android/settings/vpn2')
-rw-r--r--src/com/android/settings/vpn2/VpnSettings.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/com/android/settings/vpn2/VpnSettings.java b/src/com/android/settings/vpn2/VpnSettings.java
index d409764..ab84654 100644
--- a/src/com/android/settings/vpn2/VpnSettings.java
+++ b/src/com/android/settings/vpn2/VpnSettings.java
@@ -45,8 +45,10 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView.AdapterContextMenuInfo;
+import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
+import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
@@ -56,7 +58,6 @@ import com.android.internal.net.VpnProfile;
import com.android.internal.util.ArrayUtils;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
-
import com.google.android.collect.Lists;
import java.util.ArrayList;
@@ -349,15 +350,6 @@ 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.