summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn
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
commit9b671275c699ab8af7692144f1c754b8a5d101db (patch)
tree50d42478fe12490353f21592da74c8b249ffb1eb /src/de/blinkt/openvpn
parent883fb1ad29a8536d5b98a611ac4460d1a68a7b3a (diff)
Save stat in VPNPreferences
Diffstat (limited to 'src/de/blinkt/openvpn')
-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()));