From 9513c78707f2578a14a9fff0fce9a516b321f4bd Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 30 May 2012 15:04:44 +0200 Subject: fix bug in LaunchVPN Lifecycle (closes issue reported via email) --- src/de/blinkt/openvpn/LaunchVPN.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/de/blinkt/openvpn') diff --git a/src/de/blinkt/openvpn/LaunchVPN.java b/src/de/blinkt/openvpn/LaunchVPN.java index b031fe2..5d17e6b 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)) { -- cgit v1.2.3