diff options
| author | Arne Schwabe <arne@rfc2549.org> | 2012-05-04 22:28:20 +0200 | 
|---|---|---|
| committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-04 22:28:20 +0200 | 
| commit | 17c883cbcc92b0bd19909ae676e5c7fa83d39de5 (patch) | |
| tree | 6d6d188189b617b84d990b0e476a52234f0da943 /src/de/blinkt/openvpn/LaunchVPN.java | |
| parent | 7bfd830078268c010fdc65ccb2ef4980bf6c8e4d (diff) | |
Version 0.4.7 :)
Diffstat (limited to 'src/de/blinkt/openvpn/LaunchVPN.java')
| -rw-r--r-- | src/de/blinkt/openvpn/LaunchVPN.java | 12 | 
1 files changed, 9 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/LaunchVPN.java b/src/de/blinkt/openvpn/LaunchVPN.java index e0832f21..d74834ca 100644 --- a/src/de/blinkt/openvpn/LaunchVPN.java +++ b/src/de/blinkt/openvpn/LaunchVPN.java @@ -24,6 +24,7 @@ import android.app.AlertDialog;  import android.app.ListActivity;  import android.content.ActivityNotFoundException;  import android.content.DialogInterface; +import android.content.DialogInterface.OnClickListener;  import android.content.Intent;  import android.net.VpnService;  import android.os.Bundle; @@ -263,13 +264,18 @@ public class LaunchVPN extends ListActivity implements OnItemClickListener {  		AlertDialog.Builder d = new AlertDialog.Builder(this);  		d.setTitle(R.string.config_error_found);  		d.setMessage(vpnok); -		d.setPositiveButton(android.R.string.ok, null); +		d.setPositiveButton(android.R.string.ok, new OnClickListener() { +			 +			@Override +			public void onClick(DialogInterface dialog, int which) { +				finish(); +				 +			} +		});  		d.show();  	}  	void launchVPN () { - -  		int vpnok = mSelectedProfile.checkProfile();  		if(vpnok!= R.string.no_error_found) {  			showConfigErrorDialog(vpnok);  | 
