mirror of
https://github.com/schwabe/ics-openvpn.git
synced 2024-09-19 19:42:29 +02:00
Fix lint warnings
This commit is contained in:
parent
eb7891f0af
commit
f94736561c
@ -1,7 +1,5 @@
|
||||
package de.blinkt.openvpn;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.ActivityNotFoundException;
|
||||
@ -16,13 +14,17 @@ import android.text.InputType;
|
||||
import android.text.TextUtils;
|
||||
import android.text.method.PasswordTransformationMethod;
|
||||
import android.view.View;
|
||||
import android.widget.*;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.EditText;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import de.blinkt.openvpn.activities.LogWindow;
|
||||
import de.blinkt.openvpn.core.VpnStatus;
|
||||
import de.blinkt.openvpn.core.VpnStatus.ConnectionStatus;
|
||||
import de.blinkt.openvpn.core.ProfileManager;
|
||||
import de.blinkt.openvpn.core.VPNLaunchHelper;
|
||||
import de.blinkt.openvpn.core.VpnStatus;
|
||||
import de.blinkt.openvpn.core.VpnStatus.ConnectionStatus;
|
||||
|
||||
/**
|
||||
* This Activity actually handles two stages of a launcher shortcut's life cycle.
|
||||
@ -110,7 +112,7 @@ public class LaunchVPN extends Activity {
|
||||
private void askForPW(final int type) {
|
||||
|
||||
final EditText entry = new EditText(this);
|
||||
final View userpwlayout = getLayoutInflater().inflate(R.layout.userpass, null);
|
||||
final View userpwlayout = getLayoutInflater().inflate(R.layout.userpass, null, false);
|
||||
|
||||
entry.setSingleLine();
|
||||
entry.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
|
||||
|
@ -9,11 +9,9 @@ import android.os.ParcelFileDescriptor;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.Log;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import junit.framework.Assert;
|
||||
|
||||
import de.blinkt.openvpn.R;
|
||||
import de.blinkt.openvpn.VpnProfile;
|
||||
import de.blinkt.openvpn.core.VpnStatus.ConnectionStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.IOException;
|
||||
@ -22,7 +20,16 @@ import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.SocketAddress;
|
||||
import java.util.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Locale;
|
||||
import java.util.Vector;
|
||||
|
||||
import de.blinkt.openvpn.BuildConfig;
|
||||
import de.blinkt.openvpn.R;
|
||||
import de.blinkt.openvpn.VpnProfile;
|
||||
import de.blinkt.openvpn.core.VpnStatus.ConnectionStatus;
|
||||
|
||||
public class OpenVpnManagementThread implements Runnable, OpenVPNManagement {
|
||||
|
||||
@ -391,7 +398,7 @@ public class OpenVpnManagementThread implements Runnable, OpenVPNManagement {
|
||||
*/
|
||||
|
||||
if(routeparts.length==5) {
|
||||
assert(routeparts[3].equals("dev"));
|
||||
if (BuildConfig.DEBUG) Assert.assertEquals("dev", routeparts[3]);
|
||||
mOpenVPNService.addRoute(routeparts[0], routeparts[1], routeparts[2], routeparts[4]);
|
||||
} else if (routeparts.length >= 3) {
|
||||
mOpenVPNService.addRoute(routeparts[0], routeparts[1], routeparts[2], null);
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 32 KiB |
8800
misc/icon.ai
8800
misc/icon.ai
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user