summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-21 12:44:17 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-21 12:44:17 +0200
commit5f1cef9bf058f3c7b08b827ee9567a8fc648057a (patch)
treecd9e858f1f6439647f239cbf10f0b8ef8527a0de /src
parent5af6d2e5e0ba203429652538530818a961d648e3 (diff)
Save stat in VPNPreferences
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/VPNPreferences.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/VPNPreferences.java b/src/de/blinkt/openvpn/VPNPreferences.java
index 95f39548..4bb89b61 100644
--- a/src/de/blinkt/openvpn/VPNPreferences.java
+++ b/src/de/blinkt/openvpn/VPNPreferences.java
@@ -28,11 +28,23 @@ public class VPNPreferences extends PreferenceActivity {
super.onStop();
};
+ @Override
+ protected void onSaveInstanceState(Bundle outState) {
+ outState.putString(getIntent().getStringExtra(getPackageName() + ".profileUUID"),mProfileUUID);
+ super.onSaveInstanceState(outState);
+ }
+
@Override
protected void onCreate(Bundle savedInstanceState) {
mProfileUUID = getIntent().getStringExtra(getPackageName() + ".profileUUID");
+ if(savedInstanceState!=null){
+ String savedUUID = savedInstanceState.getString(getPackageName() + ".profileUUID");
+ if(savedUUID!=null)
+ mProfileUUID=savedUUID;
+ }
+
mProfile = ProfileManager.get(this,mProfileUUID);
if(mProfile!=null) {
setTitle(getString(R.string.edit_profile_title, mProfile.getName()));