diff options
author | Parménides GV <parmegv@sdf.org> | 2015-06-04 19:17:29 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2017-09-20 18:19:14 +0200 |
commit | ee567803db635e78dd898542ae4a777a7e52aea5 (patch) | |
tree | 7ff1945b09a761eb849af4cee9360053985c587e /main | |
parent | 1628d55103410aeed67311ebb0ffc1719a41e79f (diff) |
Remove unused images from refs.xml, method from LaunchVPN
The LaunchVPN method is askForPW.
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 |