summaryrefslogtreecommitdiff
path: root/src/se/leap/openvpn/OpenVpnPreferencesFragment.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-12-17 11:36:51 +0100
committerSean Leonard <meanderingcode@aetherislands.net>2014-02-04 16:56:39 -0800
commitd13aadfae85e2d269f3826ed772b42f6b99065bf (patch)
tree54c98ad06975d3e2091dd4bdb2a74b1374b58e3b /src/se/leap/openvpn/OpenVpnPreferencesFragment.java
parentd246e4e0b571874de0927cacf72fb193baabdca9 (diff)
More unused classes wiped.
Diffstat (limited to 'src/se/leap/openvpn/OpenVpnPreferencesFragment.java')
-rw-r--r--src/se/leap/openvpn/OpenVpnPreferencesFragment.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/se/leap/openvpn/OpenVpnPreferencesFragment.java b/src/se/leap/openvpn/OpenVpnPreferencesFragment.java
deleted file mode 100644
index 190a48fe..00000000
--- a/src/se/leap/openvpn/OpenVpnPreferencesFragment.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package se.leap.openvpn;
-
-import android.os.Bundle;
-import android.preference.PreferenceFragment;
-import se.leap.bitmaskclient.R;
-
-public abstract class OpenVpnPreferencesFragment extends PreferenceFragment {
-
- protected VpnProfile mProfile;
-
- protected abstract void loadSettings();
- protected abstract void saveSettings();
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- String profileUUID = getArguments().getString(getActivity().getPackageName() + ".profileUUID");
- mProfile = ProfileManager.get(getActivity(),profileUUID);
- getActivity().setTitle(getString(R.string.edit_profile_title, mProfile.getName()));
-
- }
-
- @Override
- public void onPause() {
- super.onPause();
- saveSettings();
- }
-
- @Override
- public void onActivityCreated(Bundle savedInstanceState) {
- super.onActivityCreated(savedInstanceState);
- if(savedInstanceState!=null) {
- String profileUUID=savedInstanceState.getString(VpnProfile.EXTRA_PROFILEUUID);
- mProfile = ProfileManager.get(getActivity(),profileUUID);
- loadSettings();
- }
- }
-
- @Override
- public void onStop() {
- // TODO Auto-generated method stub
- super.onStop();
- }
-
- @Override
- public void onSaveInstanceState (Bundle outState) {
- super.onSaveInstanceState(outState);
- saveSettings();
- outState.putString(VpnProfile.EXTRA_PROFILEUUID, mProfile.getUUIDString());
- }
-}