diff options
| author | Arne Schwabe <arne@rfc2549.org> | 2012-05-30 15:04:44 +0200 | 
|---|---|---|
| committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-30 15:04:44 +0200 | 
| commit | 97de0aad36c3ea71862927073717160e08e0eb06 (patch) | |
| tree | ed666e61dce217e8fc2e7a7c8e38b0994eb75e89 | |
| parent | c4bf9dbdabfa231b07fc7b0567c561d4b310d783 (diff) | |
fix bug in LaunchVPN Lifecycle (closes issue reported via email)
| -rw-r--r-- | src/de/blinkt/openvpn/LaunchVPN.java | 12 | 
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)) {  | 
