Remove isCustomized() check as the API is not used for now.
This commit is contained in:
@@ -58,8 +58,6 @@ class L2tpIpsecEditor extends SingleServerEditor {
|
|||||||
String result = super.validate(c);
|
String result = super.validate(c);
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
return result;
|
return result;
|
||||||
} else if (mProfile.isCustomized()) {
|
|
||||||
return null;
|
|
||||||
} else if (Util.isNullOrEmpty(mUserkey.getValue())) {
|
} else if (Util.isNullOrEmpty(mUserkey.getValue())) {
|
||||||
return c.getString(R.string.vpn_error_userkey_not_selected);
|
return c.getString(R.string.vpn_error_userkey_not_selected);
|
||||||
} else if (Util.isNullOrEmpty(mUserCertificate.getValue())) {
|
} else if (Util.isNullOrEmpty(mUserCertificate.getValue())) {
|
||||||
|
@@ -50,11 +50,9 @@ class SingleServerEditor implements VpnProfileEditor {
|
|||||||
|
|
||||||
//@Override
|
//@Override
|
||||||
public String validate(Context c) {
|
public String validate(Context c) {
|
||||||
return (mProfile.isCustomized()
|
return (Util.isNullOrEmpty(mServerName.getText())
|
||||||
? null
|
|
||||||
: (Util.isNullOrEmpty(mServerName.getText())
|
|
||||||
? c.getString(R.string.vpn_error_server_name_empty)
|
? c.getString(R.string.vpn_error_server_name_empty)
|
||||||
: null));
|
: null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user