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
commitd13c16392630354c7296c31b343720e0a0f0f571 (patch)
tree86ce66d4eaf621ea30e5c9fdaff7fb90a77d02ce /src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java
parent4a2f853dba829b6c3b582c9c2a0b1bab5d902d4a (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();
}
}