summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/vpn/VpnEditor.java
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2009-06-15 12:36:04 +0800
committerHung-ying Tyan <tyanh@google.com>2009-06-15 12:58:58 +0800
commit84cfb0dc9b87534d89651bc45128fc21c9d24423 (patch)
treec17d7cebdccdd184dbfed5f0c46993857165af7d /src/com/android/settings/vpn/VpnEditor.java
parenta55ae92a132325e9307f291c455b1148d0bff3cf (diff)
downloadpackages_apps_settings-84cfb0dc9b87534d89651bc45128fc21c9d24423.zip
packages_apps_settings-84cfb0dc9b87534d89651bc45128fc21c9d24423.tar.gz
packages_apps_settings-84cfb0dc9b87534d89651bc45128fc21c9d24423.tar.bz2
Remove use of SingleServerProfile.
* changes + mv SingleServerEditor.java VpnProfileEditor.java + Add loadExtraPreferecesTo() to VpnProfileEditor + Make L2tpIpsecEditor extend VpnProfileEditor and use loadExtraPreferencesTo() + Modify VpnEditor.getEditor() accordingly
Diffstat (limited to 'src/com/android/settings/vpn/VpnEditor.java')
-rw-r--r--src/com/android/settings/vpn/VpnEditor.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/settings/vpn/VpnEditor.java b/src/com/android/settings/vpn/VpnEditor.java
index a37b335..35c91ee 100644
--- a/src/com/android/settings/vpn/VpnEditor.java
+++ b/src/com/android/settings/vpn/VpnEditor.java
@@ -158,10 +158,8 @@ public class VpnEditor extends PreferenceActivity {
private VpnProfileEditor getEditor(VpnProfile p) {
if (p instanceof L2tpIpsecProfile) {
return new L2tpIpsecEditor((L2tpIpsecProfile) p);
- } else if (p instanceof SingleServerProfile) {
- return new SingleServerEditor((SingleServerProfile) p);
} else {
- throw new RuntimeException("Unknown profile type: " + p.getType());
+ return new VpnProfileEditor(p);
}
}