summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-06-04 19:17:29 +0200
committercyBerta <cyberta@riseup.net>2017-09-20 18:19:14 +0200
commitee567803db635e78dd898542ae4a777a7e52aea5 (patch)
tree7ff1945b09a761eb849af4cee9360053985c587e /main
parent1628d55103410aeed67311ebb0ffc1719a41e79f (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.java28
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