diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/LaunchVPN.java | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java b/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java index 8ffbbfd0..892bed41 100644 --- a/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java +++ b/main/src/main/java/de/blinkt/openvpn/LaunchVPN.java @@ -92,36 +92,10 @@ public class LaunchVPN extends Activity { @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); - // setContentView(R.layout.launchvpn); + startVpnFromIntent(); } - private ServiceConnection mConnection = new ServiceConnection() { - @Override - public void onServiceConnected(ComponentName componentName, IBinder binder) { - IServiceStatus service = IServiceStatus.Stub.asInterface(binder); - try { - if (mTransientAuthPW != null) - - service.setCachedPassword(mSelectedProfile.getUUIDString(), PasswordCache.AUTHPASSWORD, mTransientAuthPW); - if (mTransientCertOrPCKS12PW != null) - service.setCachedPassword(mSelectedProfile.getUUIDString(), PasswordCache.PCKS12ORCERTPASSWORD, mTransientCertOrPCKS12PW); - - onActivityResult(START_VPN_PROFILE, Activity.RESULT_OK, null); - - } catch (RemoteException e) { - e.printStackTrace(); - } - - unbindService(this); - } - - @Override - public void onServiceDisconnected(ComponentName componentName) { - - } - }; - protected void startVpnFromIntent() { // Resolve the intent |