From ee567803db635e78dd898542ae4a777a7e52aea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Thu, 4 Jun 2015 19:17:29 +0200 Subject: Remove unused images from refs.xml, method from LaunchVPN The LaunchVPN method is askForPW. --- .../src/main/java/de/blinkt/openvpn/LaunchVPN.java | 28 +--------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'main') 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 -- cgit v1.2.3