summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@blinkt.de>2012-05-31 22:20:51 +0200
committerArne Schwabe <arne@blinkt.de>2012-05-31 22:20:51 +0200
commitfae0343025699f20462f431cb9468d2c58e7c511 (patch)
tree965cbc1c9c50491cde7d4fb993efb8aa76f4fc38 /src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java
parent2bae1d0cf273305e4b4a46fb1dcfbfa8876a0a9b (diff)
- fix a few more strings
- add editing xxx title to cfonig settings
Diffstat (limited to 'src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java')
-rw-r--r--src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java b/src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java
index 10378a80..4cf3b10b 100644
--- a/src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java
+++ b/src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java
@@ -13,11 +13,11 @@ public abstract class OpenVpnPreferencesFragment extends PreferenceFragment {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- // Make sure there is an instance of the profile manager
- ProfileManager.getInstance(getActivity());
-
+
String profileUUID = getArguments().getString(getActivity().getPackageName() + ".profileUUID");
- mProfile = ProfileManager.get(profileUUID);
+ mProfile = ProfileManager.get(getActivity(),profileUUID);
+ getActivity().setTitle(getString(R.string.edit_profile_title, mProfile.getName()));
+
}
@Override
@@ -31,8 +31,7 @@ public abstract class OpenVpnPreferencesFragment extends PreferenceFragment {
super.onActivityCreated(savedInstanceState);
if(savedInstanceState!=null) {
String profileUUID=savedInstanceState.getString(VpnProfile.EXTRA_PROFILEUUID);
- ProfileManager.getInstance(getActivity());
- mProfile = ProfileManager.get(profileUUID);
+ mProfile = ProfileManager.get(getActivity(),profileUUID);
loadSettings();
}
}