diff options
author | Hung-ying Tyan <tyanh@google.com> | 2009-06-15 12:36:04 +0800 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2009-06-15 12:58:58 +0800 |
commit | 84cfb0dc9b87534d89651bc45128fc21c9d24423 (patch) | |
tree | c17d7cebdccdd184dbfed5f0c46993857165af7d /src/com/android/settings/vpn/VpnEditor.java | |
parent | a55ae92a132325e9307f291c455b1148d0bff3cf (diff) | |
download | packages_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.java | 4 |
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); } } |