summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-05-30 15:04:44 +0200
committerArne Schwabe <arne@rfc2549.org>2012-05-30 15:04:44 +0200
commit9513c78707f2578a14a9fff0fce9a516b321f4bd (patch)
tree91d5ed329611e6456a73c613999aa5f8e81d78c4 /src/de/blinkt/openvpn
parentdc00c0ec3dcbed67d1219666092af8989a5b351d (diff)
fix bug in LaunchVPN Lifecycle (closes issue reported via email)
Diffstat (limited to 'src/de/blinkt/openvpn')
-rw-r--r--src/de/blinkt/openvpn/LaunchVPN.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/de/blinkt/openvpn/LaunchVPN.java b/src/de/blinkt/openvpn/LaunchVPN.java
index b031fe2f..5d17e6b3 100644
--- a/src/de/blinkt/openvpn/LaunchVPN.java
+++ b/src/de/blinkt/openvpn/LaunchVPN.java
@@ -83,15 +83,17 @@ public class LaunchVPN extends ListActivity implements OnItemClickListener {
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
+ mPM =ProfileManager.getInstance(this);
+
+ }
+
+ @Override
+ protected void onStart() {
+ super.onStart();
// Resolve the intent
final Intent intent = getIntent();
final String action = intent.getAction();
-
- mPM =ProfileManager.getInstance(this);
-
-
-
// If the intent is a request to create a shortcut, we'll do that and exit
if(Intent.ACTION_MAIN.equals(action)) {