diff options
-rw-r--r-- | src/com/lamerman/FileDialog.java | 3 | ||||
-rw-r--r-- | src/de/blinkt/openvpn/AboutFragment.java | 3 | ||||
-rw-r--r-- | src/de/blinkt/openvpn/BasicSettings.java | 25 | ||||
-rw-r--r-- | src/de/blinkt/openvpn/FileSelectLayout.java | 9 | ||||
-rw-r--r-- | src/de/blinkt/openvpn/MainActivity.java | 1 | ||||
-rw-r--r-- | src/de/blinkt/openvpn/VPNPreferences.java | 2 | ||||
-rw-r--r-- | src/de/blinkt/openvpn/VPNProfileList.java | 6 |
7 files changed, 6 insertions, 43 deletions
diff --git a/src/com/lamerman/FileDialog.java b/src/com/lamerman/FileDialog.java index 821b1fbf..a5c6944a 100644 --- a/src/com/lamerman/FileDialog.java +++ b/src/com/lamerman/FileDialog.java @@ -6,8 +6,6 @@ import java.util.HashMap; import java.util.List; import java.util.TreeMap; -import de.blinkt.openvpn.R; - import android.app.AlertDialog; import android.app.ListActivity; import android.content.DialogInterface; @@ -22,6 +20,7 @@ import android.widget.LinearLayout; import android.widget.ListView; import android.widget.SimpleAdapter; import android.widget.TextView; +import de.blinkt.openvpn.R; /** * Activity para escolha de arquivos/diretorios. diff --git a/src/de/blinkt/openvpn/AboutFragment.java b/src/de/blinkt/openvpn/AboutFragment.java index a5b5695e..c96c5833 100644 --- a/src/de/blinkt/openvpn/AboutFragment.java +++ b/src/de/blinkt/openvpn/AboutFragment.java @@ -1,13 +1,10 @@ package de.blinkt.openvpn; -import android.app.Activity; import android.app.Fragment; import android.os.Bundle; -import android.preference.PreferenceFragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.view.View.OnClickListener; public class AboutFragment extends Fragment { diff --git a/src/de/blinkt/openvpn/BasicSettings.java b/src/de/blinkt/openvpn/BasicSettings.java index 271b8085..8f4fc770 100644 --- a/src/de/blinkt/openvpn/BasicSettings.java +++ b/src/de/blinkt/openvpn/BasicSettings.java @@ -16,37 +16,15 @@ package de.blinkt.openvpn; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.FileWriter; -import java.io.IOException; -import java.security.KeyStore; -import java.security.KeyStoreException; -import java.security.NoSuchAlgorithmException; -import java.security.PrivateKey; -import java.security.cert.CertificateException; -import java.security.cert.X509Certificate; import java.util.HashMap; -import java.util.Random; -import java.util.Vector; -import javax.net.ssl.TrustManagerFactory; -import javax.net.ssl.X509TrustManager; - -import android.app.Activity; import android.app.Fragment; -import android.content.Context; -import android.content.Intent; -import android.content.SharedPreferences; -import android.net.VpnService; import android.os.Bundle; import android.os.Handler; import android.os.Handler.Callback; import android.os.Message; import android.security.KeyChain; import android.security.KeyChainAliasCallback; -import android.security.KeyChainException; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -59,9 +37,6 @@ import android.widget.EditText; import android.widget.Spinner; import android.widget.TextView; import android.widget.ToggleButton; - -import com.lamerman.FileDialog; - import de.blinkt.openvpn.R.id; public class BasicSettings extends Fragment implements View.OnClickListener, OnItemSelectedListener, Callback, OnCheckedChangeListener { diff --git a/src/de/blinkt/openvpn/FileSelectLayout.java b/src/de/blinkt/openvpn/FileSelectLayout.java index 0615b2ab..71fd0fe4 100644 --- a/src/de/blinkt/openvpn/FileSelectLayout.java +++ b/src/de/blinkt/openvpn/FileSelectLayout.java @@ -1,19 +1,18 @@ package de.blinkt.openvpn; -import com.lamerman.FileDialog; -import com.lamerman.SelectionMode; - import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.TypedArray; import android.util.AttributeSet; +import android.view.View; +import android.view.View.OnClickListener; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; -import android.view.View; -import android.view.View.OnClickListener; +import com.lamerman.FileDialog; +import com.lamerman.SelectionMode; public class FileSelectLayout extends LinearLayout implements OnClickListener { diff --git a/src/de/blinkt/openvpn/MainActivity.java b/src/de/blinkt/openvpn/MainActivity.java index bc823745..fd4fc6a2 100644 --- a/src/de/blinkt/openvpn/MainActivity.java +++ b/src/de/blinkt/openvpn/MainActivity.java @@ -3,7 +3,6 @@ package de.blinkt.openvpn; import java.util.List; import android.preference.PreferenceActivity; -import android.preference.PreferenceActivity.Header; public class MainActivity extends PreferenceActivity { @Override diff --git a/src/de/blinkt/openvpn/VPNPreferences.java b/src/de/blinkt/openvpn/VPNPreferences.java index 6c68e444..27731453 100644 --- a/src/de/blinkt/openvpn/VPNPreferences.java +++ b/src/de/blinkt/openvpn/VPNPreferences.java @@ -2,9 +2,7 @@ package de.blinkt.openvpn; import java.util.List; -import android.content.Intent; import android.os.Bundle; -import android.os.Parcelable; import android.preference.CheckBoxPreference; import android.preference.EditTextPreference; import android.preference.Preference; diff --git a/src/de/blinkt/openvpn/VPNProfileList.java b/src/de/blinkt/openvpn/VPNProfileList.java index 74c857d3..59e231cc 100644 --- a/src/de/blinkt/openvpn/VPNProfileList.java +++ b/src/de/blinkt/openvpn/VPNProfileList.java @@ -1,6 +1,5 @@ package de.blinkt.openvpn; -import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.ObjectInputStream; @@ -10,11 +9,8 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Set; -import de.blinkt.openvpn.VPNConfigPreference.OnQuickSettingsClickListener; - import android.app.Activity; import android.app.AlertDialog; -import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; @@ -22,7 +18,6 @@ import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; import android.os.Parcelable; -import android.preference.DialogPreference; import android.preference.Preference; import android.preference.Preference.OnPreferenceClickListener; import android.preference.PreferenceFragment; @@ -32,6 +27,7 @@ import android.view.MenuInflater; import android.view.MenuItem; import android.widget.EditText; import android.widget.Toast; +import de.blinkt.openvpn.VPNConfigPreference.OnQuickSettingsClickListener; public class VPNProfileList extends PreferenceFragment implements OnPreferenceClickListener, OnQuickSettingsClickListener { private static final String PREFS_NAME = "VPNList"; |