From fae0343025699f20462f431cb9468d2c58e7c511 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Thu, 31 May 2012 22:20:51 +0200 Subject: - fix a few more strings - add editing xxx title to cfonig settings --- src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/de/blinkt/openvpn/OpenVpnPreferencesFragment.java') 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(); } } -- cgit v1.2.3