summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-07-21 12:49:32 +0200
committerArne Schwabe <arne@rfc2549.org>2014-07-21 12:49:32 +0200
commite18f2cc83f54b73d64266dc53fe5307a766491bc (patch)
tree71b02c7aa0e0d1b0f7b3d5d5118e1e4149e8ae31
parent9f0d1f2320e05c3eef603206b0f05c6da682cd31 (diff)
Remove unused class
--HG-- extra : rebase_source : 4a76c32a497fa306ac253c01a5530ff1ece26a8b
-rw-r--r--main/src/main/java/de/blinkt/openvpn/core/GetRestrictionReceiver.java47
1 files changed, 0 insertions, 47 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/core/GetRestrictionReceiver.java b/main/src/main/java/de/blinkt/openvpn/core/GetRestrictionReceiver.java
deleted file mode 100644
index 7f8498d5..00000000
--- a/main/src/main/java/de/blinkt/openvpn/core/GetRestrictionReceiver.java
+++ /dev/null
@@ -1,47 +0,0 @@
-package de.blinkt.openvpn.core;
-
-import android.annotation.TargetApi;
-import android.app.Activity;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.RestrictionEntry;
-import android.os.Build;
-import android.os.Bundle;
-
-import java.util.ArrayList;
-
-import de.blinkt.openvpn.R;
-
-/**
- * Created by arne on 25.07.13.
- */
-@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
-public class GetRestrictionReceiver extends BroadcastReceiver {
- @Override
- public void onReceive(final Context context, Intent intent) {
- final PendingResult result = goAsync();
-
- new Thread() {
- @Override
- public void run() {
- final Bundle extras = new Bundle();
-
- ArrayList<RestrictionEntry> restrictionEntries = initRestrictions(context);
-
- extras.putParcelableArrayList(Intent.EXTRA_RESTRICTIONS_LIST, restrictionEntries);
- result.setResult(Activity.RESULT_OK,null,extras);
- result.finish();
- }
- }.run();
- }
-
- private ArrayList<RestrictionEntry> initRestrictions(Context context) {
- ArrayList<RestrictionEntry> restrictions = new ArrayList<RestrictionEntry>();
- RestrictionEntry allowChanges = new RestrictionEntry("allow_changes",false);
- allowChanges.setTitle(context.getString(R.string.allow_vpn_changes));
- restrictions.add(allowChanges);
-
- return restrictions;
- }
-}