summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/api/GrantPermissionsActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/blinkt/openvpn/api/GrantPermissionsActivity.java')
-rw-r--r--src/de/blinkt/openvpn/api/GrantPermissionsActivity.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/de/blinkt/openvpn/api/GrantPermissionsActivity.java b/src/de/blinkt/openvpn/api/GrantPermissionsActivity.java
deleted file mode 100644
index 659ec24b..00000000
--- a/src/de/blinkt/openvpn/api/GrantPermissionsActivity.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package de.blinkt.openvpn.api;
-
-import android.app.Activity;
-import android.content.Intent;
-import android.net.VpnService;
-
-public class GrantPermissionsActivity extends Activity {
- private static final int VPN_PREPARE = 0;
-
- @Override
- protected void onStart() {
- super.onStart();
- Intent i= VpnService.prepare(this);
- if(i==null)
- onActivityResult(VPN_PREPARE, RESULT_OK, null);
- else
- startActivityForResult(i, VPN_PREPARE);
- }
-
- @Override
- protected void onActivityResult(int requestCode, int resultCode, Intent data) {
- super.onActivityResult(requestCode, resultCode, data);
- setResult(resultCode);
- finish();
- }
-}